pub struct Hashbytes { /* private fields */ }
Available on crate feature
hashstrings
only.Expand description
The hash of a slice of u8’s. Can be used to search for data without storing the data itself in memory.
§Example
use encrust_core::Hashbytes;
let hashbytes = Hashbytes::new(&[1, 2, 3], 0xc0ffee);
assert!(hashbytes == &[1, 2, 3]);
assert!(hashbytes != &[4, 5, 6]);
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hashbytes
impl RefUnwindSafe for Hashbytes
impl Send for Hashbytes
impl Sync for Hashbytes
impl Unpin for Hashbytes
impl UnwindSafe for Hashbytes
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