Struct pwasm_std::hash::H2048
[−]
[src]
#[repr(C)]pub struct H2048(pub [u8; 256]);
Unformatted binary data of fixed length.
Methods
impl H2048
[src]
fn new() -> H2048
[src]
Create a new, zero-initialised, instance.
fn zero() -> H2048
[src]
Synonym for new()
. Prefer to new as it's more readable.
fn len() -> usize
[src]
Get the size of this object in bytes.
fn as_ptr(&self) -> *const u8
[src]
Returns a constant raw pointer to the value
fn as_mut_ptr(&mut self) -> *mut u8
[src]
Returns a mutable raw pointer to the value
fn clone_from_slice(&mut self, src: &[u8]) -> usize
[src]
Assign self to be of the same value as a slice of bytes of length len()
.
fn from_slice(src: &[u8]) -> H2048
[src]
Convert a slice of bytes of length len()
to an instance of this type.
fn copy_to(&self, dest: &mut [u8])
[src]
Copy the data of this object into some mutable slice of length len()
.
fn contains(&'a self, b: &'a H2048) -> bool
[src]
Returns true
if all bits set in b
are also set in self
.
fn is_zero(&self) -> bool
[src]
Returns true
if no bits are set.
fn low_u64(&self) -> u64
[src]
Returns the lowest 8 bytes interpreted as a BigEndian integer.
Trait Implementations
impl PartialOrd<H2048> for H2048
[src]
fn partial_cmp(&self, other: &H2048) -> Option<Ordering>
[src]
impl PartialEq<H2048> for H2048
[src]
impl<'a> BitOr<&'a H2048> for &'a H2048
[src]
BitOr
on references
impl BitOr<H2048> for H2048
[src]
Moving BitOr
impl<'a> BitXor<&'a H2048> for &'a H2048
[src]
BitXor
on references
type Output = H2048
fn bitxor(self, rhs: &'a H2048) -> <&'a H2048 as BitXor<&'a H2048>>::Output
[src]
impl BitXor<H2048> for H2048
[src]
Moving BitXor
impl Deref for H2048
[src]
type Target = [u8]
The resulting type after dereferencing.
fn deref(&self) -> &[u8]
[src]
Dereferences the value.
impl Clone for H2048
[src]
impl AsMut<[u8]> for H2048
[src]
impl Copy for H2048
[src]
impl Hash for H2048
[src]
impl AsRef<[u8]> for H2048
[src]
impl Ord for H2048
[src]
impl From<u64> for H2048
[src]
impl From<[u8; 256]> for H2048
[src]
impl<'a> From<&'a [u8]> for H2048
[src]
impl<'a> BitAnd<&'a H2048> for &'a H2048
[src]
BitAnd
on references
type Output = H2048
fn bitand(self, rhs: &'a H2048) -> <&'a H2048 as BitAnd<&'a H2048>>::Output
[src]
impl BitAnd<H2048> for H2048
[src]
Moving BitAnd