Struct stable_hash::utils::AsBytes
source · [−]Expand description
Treat some &u8 as a sequence of bytes, rather than a sequence of numbers. Using this can result in a significant performance gain but does not support the backward compatible change to different int types as numbers do by default
Tuple Fields
0: &'a [u8]Trait Implementations
sourceimpl StableHash for AsBytes<'_>
impl StableHash for AsBytes<'_>
fn stable_hash<H: StableHasher>(&self, sequence_number: H::Seq, state: &mut H)
Auto Trait Implementations
impl<'a> RefUnwindSafe for AsBytes<'a>
impl<'a> Send for AsBytes<'a>
impl<'a> Sync for AsBytes<'a>
impl<'a> Unpin for AsBytes<'a>
impl<'a> UnwindSafe for AsBytes<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more