pub enum Value {
String(String),
Number(u64),
Bytes(Vec<u8>),
}
Expand description
Represents a value to be hashed. Only UTF-8 strings, bytes and unsigned numbers 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.
Trait Implementations§
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