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

#[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 IndexMut<usize> 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 IndexMut<RangeFull> for H520
[src]

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

impl Eq for H520
[src]

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 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 AsMut<[u8]> for H520
[src]

Performs the conversion.

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

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

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 AsRef<[u8]> for H520
[src]

Performs the conversion.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Mutably dereferences the value.

impl BitXor<H520> for H520
[src]

Moving BitXor

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

BitXor on references

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl Deref for H520
[src]

The resulting type after dereferencing.

Dereferences the value.

impl From<u64> for H520
[src]

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

Auto Trait Implementations

impl Send for H520

impl Sync for H520

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more