Struct pwasm_std::hash::H512
[−]
[src]
#[repr(C)]pub struct H512(pub [u8; 64]);
Unformatted binary data of fixed length.
Methods
impl H512
[src]
fn new() -> H512
[src]
Create a new, zero-initialised, instance.
fn zero() -> H512
[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]) -> H512
[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 H512) -> 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<H512> for H512
[src]
fn partial_cmp(&self, other: &H512) -> Option<Ordering>
[src]
impl PartialEq<H512> for H512
[src]
impl<'a> BitOr<&'a H512> for &'a H512
[src]
BitOr
on references
impl BitOr<H512> for H512
[src]
Moving BitOr
impl BitXor<H512> for H512
[src]
Moving BitXor
impl<'a> BitXor<&'a H512> for &'a H512
[src]
BitXor
on references
impl Deref for H512
[src]
type Target = [u8]
The resulting type after dereferencing.
fn deref(&self) -> &[u8]
[src]
Dereferences the value.
impl Clone for H512
[src]
impl AsMut<[u8]> for H512
[src]
impl Copy for H512
[src]
impl Hash for H512
[src]
impl AsRef<[u8]> for H512
[src]
impl Ord for H512
[src]
impl<'a> From<&'a [u8]> for H512
[src]
impl From<u64> for H512
[src]
impl From<[u8; 64]> for H512
[src]
impl BitAnd<H512> for H512
[src]
Moving BitAnd
impl<'a> BitAnd<&'a H512> for &'a H512
[src]
BitAnd
on references