pub enum KernelValue {
Bool(bool),
U64(u64),
String(String),
NamedVariant {
enum_name: String,
variant: String,
},
Seq(Vec<KernelValue>),
Set(BTreeSet<KernelValue>),
Map(BTreeMap<KernelValue, KernelValue>),
None,
}Variants§
Bool(bool)
U64(u64)
String(String)
NamedVariant
Seq(Vec<KernelValue>)
Set(BTreeSet<KernelValue>)
Map(BTreeMap<KernelValue, KernelValue>)
None
Implementations§
Trait Implementations§
Source§impl Clone for KernelValue
impl Clone for KernelValue
Source§fn clone(&self) -> KernelValue
fn clone(&self) -> KernelValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelValue
impl Debug for KernelValue
Source§impl<'de> Deserialize<'de> for KernelValue
impl<'de> Deserialize<'de> for KernelValue
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 KernelValue
impl Ord for KernelValue
Source§fn cmp(&self, other: &KernelValue) -> Ordering
fn cmp(&self, other: &KernelValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KernelValue
impl PartialEq for KernelValue
Source§impl PartialOrd for KernelValue
impl PartialOrd for KernelValue
Source§impl Serialize for KernelValue
impl Serialize for KernelValue
impl Eq for KernelValue
impl StructuralPartialEq for KernelValue
Auto Trait Implementations§
impl Freeze for KernelValue
impl RefUnwindSafe for KernelValue
impl Send for KernelValue
impl Sync for KernelValue
impl Unpin for KernelValue
impl UnsafeUnpin for KernelValue
impl UnwindSafe for KernelValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.