pub enum Value {
Text(String),
Uint(u64),
Nint(i64),
Float(f64),
Bytes(Vec<u8>),
}
Expand description
A literal value, i.e. "foo"
, 1.0
, or h'FFF7'
CDDL ABNF grammar:
value = number / text / bytes
Variants§
Text(String)
A text-string literal.
Uint(u64)
An unsigned integer literal.
Nint(i64)
A negative integer literal.
Float(f64)
A floating-point literal.
Bytes(Vec<u8>)
A byte-tring literal.
Trait Implementations§
source§impl PartialEq for Value
impl PartialEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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