#[repr(C)]pub struct Hash(pub [u8; 64]);Tuple Fields§
§0: [u8; 64]Implementations§
Source§impl Hash
impl Hash
Sourcepub fn repeat_byte(byte: u8) -> Hash
pub fn repeat_byte(byte: u8) -> Hash
Returns a new fixed hash where all bits are set to the given byte.
Sourcepub fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
pub fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
Extracts a mutable byte slice containing the entire fixed hash.
Sourcepub fn as_fixed_bytes(&self) -> &[u8; 64]
pub fn as_fixed_bytes(&self) -> &[u8; 64]
Extracts a reference to the byte array containing the entire fixed hash.
Sourcepub fn as_fixed_bytes_mut(&mut self) -> &mut [u8; 64]
pub fn as_fixed_bytes_mut(&mut self) -> &mut [u8; 64]
Extracts a reference to the byte array containing the entire fixed hash.
Sourcepub fn to_fixed_bytes(self) -> [u8; 64]
pub fn to_fixed_bytes(self) -> [u8; 64]
Returns the inner bytes array.
Sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Returns a mutable raw pointer to the value.
Sourcepub fn assign_from_slice(&mut self, src: &[u8])
pub fn assign_from_slice(&mut self, src: &[u8])
Sourcepub fn from_slice(src: &[u8]) -> Self
pub fn from_slice(src: &[u8]) -> Self
Trait Implementations§
Source§impl<'r> BitAndAssign<&'r Hash> for Hash
impl<'r> BitAndAssign<&'r Hash> for Hash
Source§fn bitand_assign(&mut self, rhs: &'r Hash)
fn bitand_assign(&mut self, rhs: &'r Hash)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Hash
impl BitAndAssign for Hash
Source§fn bitand_assign(&mut self, rhs: Hash)
fn bitand_assign(&mut self, rhs: Hash)
Performs the
&= operation. Read moreSource§impl<'r> BitOrAssign<&'r Hash> for Hash
impl<'r> BitOrAssign<&'r Hash> for Hash
Source§fn bitor_assign(&mut self, rhs: &'r Hash)
fn bitor_assign(&mut self, rhs: &'r Hash)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Hash
impl BitOrAssign for Hash
Source§fn bitor_assign(&mut self, rhs: Hash)
fn bitor_assign(&mut self, rhs: Hash)
Performs the
|= operation. Read moreSource§impl<'r> BitXorAssign<&'r Hash> for Hash
impl<'r> BitXorAssign<&'r Hash> for Hash
Source§fn bitxor_assign(&mut self, rhs: &'r Hash)
fn bitxor_assign(&mut self, rhs: &'r Hash)
Performs the
^= operation. Read moreSource§impl BitXorAssign for Hash
impl BitXorAssign for Hash
Source§fn bitxor_assign(&mut self, rhs: Hash)
fn bitxor_assign(&mut self, rhs: Hash)
Performs the
^= operation. Read moreSource§impl Ord for Hash
impl Ord for Hash
Source§impl PartialOrd for Hash
impl PartialOrd for Hash
impl Copy for Hash
impl Eq 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