pub(crate) enum PrimitiveType {
Null,
Boolean,
Int,
Long,
Float,
Double,
Bytes,
String,
}变体§
Null
null:无值
Boolean
boolean:一个二进制值
整数
int:32 位有符号整数
长整数
long:64 位有符号整数
Float
float:单精度(32 位)IEEE 754 浮点数
Double
double:双精度(64 位)IEEE 754 浮点数
字节
bytes:8 位无符号字节序列
String
string:Unicode 字符序列
Trait 实现§
来源§impl Clone for PrimitiveType
impl Clone for PrimitiveType
来源§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
返回值的副本。 阅读更多
1.0.0 · 源§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
执行从
source 的复制赋值。 阅读更多来源§impl Debug for PrimitiveType
impl Debug for PrimitiveType
来源§impl<'de> Deserialize<'de> for PrimitiveType
impl<'de> Deserialize<'de> for PrimitiveType
来源§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>,
从给定的 Serde 反序列化器反序列化此值。 阅读更多
来源§impl From<PrimitiveType> for Codec
impl From<PrimitiveType> for Codec
来源§fn from(value: PrimitiveType) -> Self
fn from(value: PrimitiveType) -> Self
从输入类型转换为此类型。
来源§impl Hash for PrimitiveType
impl Hash for PrimitiveType
来源§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
来源§impl Serialize for PrimitiveType
impl Serialize for PrimitiveType
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
自动 Trait 实现§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
通用实现§
源§impl<T> CloneToUninit for Twhere T: Clone,
impl<T> CloneToUninit for Twhere T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
将 self 与
key 进行比较,如果它们相等则返回 true。