Struct pwasm_std::hash::H512[][src]

#[repr(C)]
pub struct H512(pub [u8; 64]);

Unformatted binary data of fixed length.

Methods

impl H512
[src]

Create a new, zero-initialised, instance.

Synonym for new(). Prefer to new as it's more readable.

Get the size of this object in bytes.

Returns a constant raw pointer to the value

Returns a mutable raw pointer to the value

Assign self to be of the same value as a slice of bytes of length len().

Convert a slice of bytes of length len() to an instance of this type.

Copy the data of this object into some mutable slice of length len().

Returns true if all bits set in b are also set in self.

Returns true if no bits are set.

Returns the lowest 8 bytes interpreted as a BigEndian integer.

Trait Implementations

impl Copy for H512
[src]

impl Ord for H512
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl AsMut<[u8]> for H512
[src]

Performs the conversion.

impl BitXor<H512> for H512
[src]

Moving BitXor

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<'a> BitXor<&'a H512> for &'a H512
[src]

BitXor on references

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl Deref for H512
[src]

The resulting type after dereferencing.

Dereferences the value.

impl Default for H512
[src]

Returns the "default value" for a type. Read more

impl DerefMut for H512
[src]

Mutably dereferences the value.

impl Clone for H512
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl BitOr<H512> for H512
[src]

Moving BitOr

The resulting type after applying the | operator.

Performs the | operation.

impl<'a> BitOr<&'a H512> for &'a H512
[src]

BitOr on references

The resulting type after applying the | operator.

Performs the | operation.

impl Hash for H512
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd<H512> for H512
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'a> BitAnd<&'a H512> for &'a H512
[src]

BitAnd on references

The resulting type after applying the & operator.

Performs the & operation.

impl BitAnd<H512> for H512
[src]

Moving BitAnd

The resulting type after applying the & operator.

Performs the & operation.

impl Index<RangeFull> for H512
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<usize> for H512
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<Range<usize>> for H512
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<Range<usize>> for H512
[src]

Performs the mutable indexing (container[index]) operation.

impl IndexMut<usize> for H512
[src]

Performs the mutable indexing (container[index]) operation.

impl IndexMut<RangeFull> for H512
[src]

Performs the mutable indexing (container[index]) operation.

impl From<u64> for H512
[src]

Performs the conversion.

impl From<[u8; 64]> for H512
[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for H512
[src]

Performs the conversion.

impl From<H512> for [u8; 64]
[src]

Performs the conversion.

impl PartialEq<H512> for H512
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for H512
[src]

impl AsRef<[u8]> for H512
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for H512

impl Sync for H512