pub enum DataType {
}Expand description
数据类型枚举
定义了 Axion 库支持的所有数据类型,包括基础类型和复合类型。 支持序列化、反序列化以及类型比较和排序。
§类型层次
- Null - 空值类型
- Bool - 布尔类型
- 整数类型 - Int8, Int16, Int32, Int64, Int128
- 无符号整数类型 - UInt8, UInt16, UInt32, UInt64, UInt128
- 浮点类型 - Float32, Float64
- 字符串类型 - String
- 复合类型 - List(内部类型)
Variants§
Null
空值类型
Bool
布尔类型
Int8
8位有符号整数
Int16
16位有符号整数
Int32
32位有符号整数
Int64
64位有符号整数
Int128
128位有符号整数
UInt8
8位无符号整数
UInt16
16位无符号整数
UInt32
32位无符号整数
UInt64
64位无符号整数
UInt128
128位无符号整数
Float32
32位浮点数
Float64
64位浮点数
String
字符串类型
List(Box<DataType>)
列表类型,包含内部元素的数据类型
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataType
impl<'de> Deserialize<'de> for DataType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for DataType
impl Ord for DataType
Source§impl PartialOrd for DataType
impl PartialOrd for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more