Enum netidx_netproto::value::Typ
source · [−]pub enum Typ {
Show 18 variants
U32,
V32,
I32,
Z32,
U64,
V64,
I64,
Z64,
F32,
F64,
DateTime,
Duration,
Bool,
String,
Bytes,
Result,
Array,
Null,
}
Variants
U32
V32
I32
Z32
U64
V64
I64
Z64
F32
F64
DateTime
Duration
Bool
String
Bytes
Result
Array
Null
Implementations
sourceimpl 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]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
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
sourceimpl Ord for Typ
impl Ord for Typ
sourceimpl PartialOrd<Typ> for Typ
impl PartialOrd<Typ> for Typ
sourcefn partial_cmp(&self, other: &Typ) -> Option<Ordering>
fn partial_cmp(&self, other: &Typ) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.