pub struct Hash(/* private fields */);Implementations§
Source§impl Hash
impl Hash
pub fn generator() -> Sha256
pub const fn new(hash: [u8; 32]) -> Self
pub const fn new_empty() -> Self
pub fn new_from_slice(data: &[u8]) -> Self
pub fn new_from_rand<R: CryptoRngCore>(rng: R) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_bytes(&self) -> &[u8; 32]
pub fn to_bytes(&self) -> [u8; 32]
pub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
Source§impl From<Hash> for AddressHash
impl From<Hash> for AddressHash
impl Copy for Hash
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnsafeUnpin for Hash
impl UnwindSafe for Hash
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