pub enum TableKey {
Text(String),
Integer(i128),
Bool(bool),
Null,
Bytes(Vec<u8>),
}Expand description
A primitive value key used in a CBOR-LD type table.
Variants§
Text(String)
A text value.
Integer(i128)
An integer value.
Bool(bool)
A boolean value.
Null
A null value.
Bytes(Vec<u8>)
A byte string value.
Trait Implementations§
impl Eq for TableKey
Source§impl Ord for TableKey
impl Ord for TableKey
1.21.0 (const: unstable) · 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 PartialOrd for TableKey
impl PartialOrd for TableKey
impl StructuralPartialEq for TableKey
Auto Trait Implementations§
impl Freeze for TableKey
impl RefUnwindSafe for TableKey
impl Send for TableKey
impl Sync for TableKey
impl Unpin for TableKey
impl UnsafeUnpin for TableKey
impl UnwindSafe for TableKey
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