pub enum Value {
String(String),
Number(u64),
Bytes(Vec<u8>),
Array(Vec<Value>),
}
Expand description
Represents a value to be hashed. Only UTF-8 strings, bytes, unsigned numbers, and arrays are currently supported.
Variants§
String(String)
An UTF-8 string to be hashed.
Number(u64)
A number to be hashed.
Bytes(Vec<u8>)
Bytes to be hashed.
Array(Vec<Value>)
An array of values to be hashed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
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