CellValue

概述

CellValue 是 Aspose.Cells Rust 的 FOSS 中的枚举。继承自:Debug、Clone、PartialEq。

此枚举为 Rust 程序中的 CellValue 对象声明了 8 个方法。可用的方法包括:as_bool、as_datetime、as_f64、as_i32、as_i64、as_str、as_string、get_type。在安装 Aspose.Cells Rust 的 FOSS 包后,公共成员对任何 Rust 应用程序均可访问。

值

值描述
String
Number
Bool
DateTime
Error
Formula
Empty

方法

签名描述
get_type() → CellValueType返回类型。
as_i32() → Option<i32>在此 CellValue 实例上调用 as_i32。
as_i64() → Option<i64>在此 CellValue 实例上调用 as_i64。
as_f64() → Option<f64>在此 CellValue 实例上调用 as_f64。
as_bool() → Option<bool>在此 CellValue 实例上调用 as_bool。
as_datetime() → Option<DateTime<Utc>>在此 CellValue 实例上调用 as_datetime。
as_str() → Option<&str>在此 CellValue 实例上调用 as_str。
as_string() → Option<String>在此 CellValue 实例上调用 as_string。

另请参阅

 中文