Enum below_model::Field
source · [−]pub enum Field {
U32(u32),
U64(u64),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Str(String),
PidState(PidState),
VecU32(Vec<u32>),
}
Expand description
A wrapper for different field types used in Models. By this way we can query different fields in a single function without using Box.
Variants
U32(u32)
U64(u64)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Str(String)
PidState(PidState)
VecU32(Vec<u32>)
Trait Implementations
sourceimpl PartialEq<Field> for Field
impl PartialEq<Field> for Field
sourceimpl PartialOrd<Field> for Field
impl PartialOrd<Field> for Field
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> 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
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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