Struct pwasm_std::hash::H520 [−][src]
#[repr(C)]pub struct H520(pub [u8; 65]);
Unformatted binary data of fixed length.
Methods
impl H520[src]
impl H520pub fn new() -> H520[src]
pub fn new() -> H520Create a new, zero-initialised, instance.
pub fn zero() -> H520[src]
pub fn zero() -> H520Synonym for new(). Prefer to new as it's more readable.
pub fn len() -> usize[src]
pub fn len() -> usizeGet the size of this object in bytes.
pub fn as_ptr(&self) -> *const u8[src]
pub fn as_ptr(&self) -> *const u8Returns a constant raw pointer to the value
pub fn as_mut_ptr(&mut self) -> *mut u8[src]
pub fn as_mut_ptr(&mut self) -> *mut u8Returns a mutable raw pointer to the value
pub fn clone_from_slice(&mut self, src: &[u8]) -> usize[src]
pub fn clone_from_slice(&mut self, src: &[u8]) -> usizeAssign self to be of the same value as a slice of bytes of length len().
pub fn from_slice(src: &[u8]) -> H520[src]
pub fn from_slice(src: &[u8]) -> H520Convert a slice of bytes of length len() to an instance of this type.
pub fn copy_to(&self, dest: &mut [u8])[src]
pub fn copy_to(&self, dest: &mut [u8])Copy the data of this object into some mutable slice of length len().
pub fn contains(&'a self, b: &'a H520) -> bool[src]
pub fn contains(&'a self, b: &'a H520) -> boolReturns true if all bits set in b are also set in self.
pub fn is_zero(&self) -> bool[src]
pub fn is_zero(&self) -> boolReturns true if no bits are set.
pub fn low_u64(&self) -> u64[src]
pub fn low_u64(&self) -> u64Returns the lowest 8 bytes interpreted as a BigEndian integer.
Trait Implementations
impl Copy for H520[src]
impl Copy for H520impl Ord for H520[src]
impl Ord for H520fn cmp(&self, other: &H520) -> Ordering[src]
fn cmp(&self, other: &H520) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl AsMut<[u8]> for H520[src]
impl AsMut<[u8]> for H520impl<'a> BitXor<&'a H520> for &'a H520[src]
impl<'a> BitXor<&'a H520> for &'a H520BitXor on references
type Output = H520
The resulting type after applying the ^ operator.
fn bitxor(self, rhs: &'a H520) -> <&'a H520 as BitXor<&'a H520>>::Output[src]
fn bitxor(self, rhs: &'a H520) -> <&'a H520 as BitXor<&'a H520>>::OutputPerforms the ^ operation.
impl BitXor<H520> for H520[src]
impl BitXor<H520> for H520Moving BitXor
type Output = H520
The resulting type after applying the ^ operator.
fn bitxor(self, rhs: H520) -> <H520 as BitXor<H520>>::Output[src]
fn bitxor(self, rhs: H520) -> <H520 as BitXor<H520>>::OutputPerforms the ^ operation.
impl Deref for H520[src]
impl Deref for H520type Target = [u8]
The resulting type after dereferencing.
fn deref(&self) -> &[u8][src]
fn deref(&self) -> &[u8]Dereferences the value.
impl Default for H520[src]
impl Default for H520impl DerefMut for H520[src]
impl DerefMut for H520impl Clone for H520[src]
impl Clone for H520fn clone(&self) -> H520[src]
fn clone(&self) -> H520Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl BitOr<H520> for H520[src]
impl BitOr<H520> for H520Moving BitOr
type Output = H520
The resulting type after applying the | operator.
fn bitor(self, rhs: H520) -> <H520 as BitOr<H520>>::Output[src]
fn bitor(self, rhs: H520) -> <H520 as BitOr<H520>>::OutputPerforms the | operation.
impl<'a> BitOr<&'a H520> for &'a H520[src]
impl<'a> BitOr<&'a H520> for &'a H520BitOr on references
type Output = H520
The resulting type after applying the | operator.
fn bitor(self, rhs: &'a H520) -> <&'a H520 as BitOr<&'a H520>>::Output[src]
fn bitor(self, rhs: &'a H520) -> <&'a H520 as BitOr<&'a H520>>::OutputPerforms the | operation.
impl Hash for H520[src]
impl Hash for H520fn hash<H>(&self, state: &mut H) where
H: Hasher, [src]
fn hash<H>(&self, state: &mut H) where
H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl PartialOrd<H520> for H520[src]
impl PartialOrd<H520> for H520fn partial_cmp(&self, other: &H520) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &H520) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl BitAnd<H520> for H520[src]
impl BitAnd<H520> for H520Moving BitAnd
type Output = H520
The resulting type after applying the & operator.
fn bitand(self, rhs: H520) -> <H520 as BitAnd<H520>>::Output[src]
fn bitand(self, rhs: H520) -> <H520 as BitAnd<H520>>::OutputPerforms the & operation.
impl<'a> BitAnd<&'a H520> for &'a H520[src]
impl<'a> BitAnd<&'a H520> for &'a H520BitAnd on references
type Output = H520
The resulting type after applying the & operator.
fn bitand(self, rhs: &'a H520) -> <&'a H520 as BitAnd<&'a H520>>::Output[src]
fn bitand(self, rhs: &'a H520) -> <&'a H520 as BitAnd<&'a H520>>::OutputPerforms the & operation.
impl Index<usize> for H520[src]
impl Index<usize> for H520type Output = u8
The returned type after indexing.
fn index(&self, index: usize) -> &u8[src]
fn index(&self, index: usize) -> &u8Performs the indexing (container[index]) operation.
impl Index<RangeFull> for H520[src]
impl Index<RangeFull> for H520type Output = [u8]
The returned type after indexing.
fn index(&self, _index: RangeFull) -> &[u8][src]
fn index(&self, _index: RangeFull) -> &[u8]Performs the indexing (container[index]) operation.
impl Index<Range<usize>> for H520[src]
impl Index<Range<usize>> for H520type Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8][src]
fn index(&self, index: Range<usize>) -> &[u8]Performs the indexing (container[index]) operation.
impl IndexMut<usize> for H520[src]
impl IndexMut<usize> for H520fn index_mut(&mut self, index: usize) -> &mut u8[src]
fn index_mut(&mut self, index: usize) -> &mut u8Performs the mutable indexing (container[index]) operation.
impl IndexMut<RangeFull> for H520[src]
impl IndexMut<RangeFull> for H520fn index_mut(&mut self, _index: RangeFull) -> &mut [u8][src]
fn index_mut(&mut self, _index: RangeFull) -> &mut [u8]Performs the mutable indexing (container[index]) operation.
impl IndexMut<Range<usize>> for H520[src]
impl IndexMut<Range<usize>> for H520fn index_mut(&mut self, index: Range<usize>) -> &mut [u8][src]
fn index_mut(&mut self, index: Range<usize>) -> &mut [u8]Performs the mutable indexing (container[index]) operation.
impl<'a> From<&'a [u8]> for H520[src]
impl<'a> From<&'a [u8]> for H520impl From<H520> for [u8; 65][src]
impl From<H520> for [u8; 65]impl From<[u8; 65]> for H520[src]
impl From<[u8; 65]> for H520impl From<u64> for H520[src]
impl From<u64> for H520impl PartialEq<H520> for H520[src]
impl PartialEq<H520> for H520fn eq(&self, other: &H520) -> bool[src]
fn eq(&self, other: &H520) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for H520[src]
impl Eq for H520impl AsRef<[u8]> for H520[src]
impl AsRef<[u8]> for H520