CellValue
CellValue
ภาพรวม
CellValue เป็น enum ใน Aspose.Cells FOSS สำหรับ Rust. สืบทอดจาก: Debug, Clone, PartialEq.
enum นี้ประกาศ 8 วิธีการสำหรับวัตถุ CellValue ในโปรแกรม Rust. วิธีการที่มีอยู่รวมถึง: as_bool, as_datetime, as_f64, as_i32, as_i64, as_str, as_string, get_type. สมาชิกสาธารณะสามารถเข้าถึงได้โดยแอปพลิเคชัน Rust ใดๆ หลังจากติดตั้งแพคเกจ Aspose.Cells FOSS สำหรับ Rust.
ค่า
| ค่า | คำอธิบาย |
|---|---|
String | |
Number | |
Bool | |
DateTime | |
Error | |
Formula | |
Empty |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
get_type() → CellValueType | คืนค่าชนิด. |
as_i32() → Option<i32> | เรียก as_i32 บนอินสแตนซ์ CellValue นี้. |
as_i64() → Option<i64> | เรียก as_i64 บนอินสแตนซ์ CellValue นี้. |
as_f64() → Option<f64> | เรียก as_f64 บนอินสแตนซ์ CellValue นี้. |
as_bool() → Option<bool> | เรียก as_bool บนอินสแตนซ์ CellValue นี้. |
as_datetime() → Option<DateTime<Utc>> | เรียก as_datetime บนอินสแตนซ์ CellValue นี้. |
as_str() → Option<&str> | เรียก as_str บนอินสแตนซ์ CellValue นี้. |
as_string() → Option<String> | เรียก as_string บนอินสแตนซ์ CellValue นี้. |