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>),
StrSet(BTreeSet<String>),
Cpuset(Cpuset),
MemNodes(MemNodes),
}
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>)
StrSet(BTreeSet<String>)
Cpuset(Cpuset)
MemNodes(MemNodes)
Trait Implementations§
source§impl PartialEq<Field> for Field
impl PartialEq<Field> for Field
source§impl PartialOrd<Field> for Field
impl PartialOrd<Field> for Field
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 moreAuto Trait Implementations§
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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