pub struct NarHash([u8; 32]);Available on crate feature
daemon only.Expand description
newtype wrapper for the byte array that correctly implements NixSerialize, NixDeserialize.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl NixDeserialize for NarHash
impl NixDeserialize for NarHash
Source§impl NixSerialize for NarHash
impl NixSerialize for NarHash
impl Copy for NarHash
impl Eq for NarHash
impl StructuralPartialEq for NarHash
Auto Trait Implementations§
impl Freeze for NarHash
impl RefUnwindSafe for NarHash
impl Send for NarHash
impl Sync for NarHash
impl Unpin for NarHash
impl UnsafeUnpin for NarHash
impl UnwindSafe for NarHash
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.