Struct pwasm_std::hash::H520[][src]

#[repr(C)]
pub struct H520(pub [u8; 65]);

Unformatted binary data of fixed length.

Methods

impl H520
[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 H520
[src]

impl Ord for H520
[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 H520
[src]

Performs the conversion.

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

BitXor on references

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl BitXor<H520> for H520
[src]

Moving BitXor

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl Deref for H520
[src]

The resulting type after dereferencing.

Dereferences the value.

impl Default for H520
[src]

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

impl DerefMut for H520
[src]

Mutably dereferences the value.

impl Clone for H520
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl BitOr<H520> for H520
[src]

Moving BitOr

The resulting type after applying the | operator.

Performs the | operation.

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

BitOr on references

The resulting type after applying the | operator.

Performs the | operation.

impl Hash for H520
[src]

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

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

impl PartialOrd<H520> for H520
[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 BitAnd<H520> for H520
[src]

Moving BitAnd

The resulting type after applying the & operator.

Performs the & operation.

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

BitAnd on references

The resulting type after applying the & operator.

Performs the & operation.

impl Index<usize> for H520
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<RangeFull> for H520
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for H520
[src]

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

impl IndexMut<RangeFull> for H520
[src]

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

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

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

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

Performs the conversion.

impl From<H520> for [u8; 65]
[src]

Performs the conversion.

impl From<[u8; 65]> for H520
[src]

Performs the conversion.

impl From<u64> for H520
[src]

Performs the conversion.

impl PartialEq<H520> for H520
[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 H520
[src]

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

Performs the conversion.

Auto Trait Implementations

impl Send for H520

impl Sync for H520