Enum netidx_netproto::value::Typ
source · pub enum Typ {
Show 19 variants
U32,
V32,
I32,
Z32,
U64,
V64,
I64,
Z64,
F32,
F64,
Decimal,
DateTime,
Duration,
Bool,
String,
Bytes,
Result,
Array,
Null,
}
Variants§
U32
V32
I32
Z32
U64
V64
I64
Z64
F32
F64
Decimal
DateTime
Duration
Bool
String
Bytes
Result
Array
Null
Implementations§
source§impl Typ
impl Typ
pub fn parse(&self, s: &str) -> Result<Value>
pub fn name(&self) -> &'static str
pub fn get(v: &Value) -> Self
pub fn all() -> &'static [Self]
pub fn number(&self) -> bool
pub fn integer(&self) -> bool
pub fn signed_integer(&self) -> bool
pub fn unsigned_integer(&self) -> bool
pub fn float(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for Typ
impl<'de> Deserialize<'de> for Typ
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 Typ
impl Ord for Typ
source§impl PartialOrd for Typ
impl PartialOrd for Typ
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Typ
impl Eq for Typ
impl StructuralEq for Typ
impl StructuralPartialEq for Typ
Auto Trait Implementations§
impl RefUnwindSafe for Typ
impl Send for Typ
impl Sync for Typ
impl Unpin for Typ
impl UnwindSafe for Typ
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key
and return true
if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString
]. Read more