Struct pwasm_std::hash::H128[][src]

#[repr(C)]
pub struct H128(pub [u8; 16]);

Unformatted binary data of fixed length.

Methods

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

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

Performs the conversion.

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

BitXor on references

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl BitXor<H128> for H128
[src]

Moving BitXor

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl Deref for H128
[src]

The resulting type after dereferencing.

Dereferences the value.

impl Default for H128
[src]

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

impl DerefMut for H128
[src]

Mutably dereferences the value.

impl Clone for H128
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

BitOr on references

The resulting type after applying the | operator.

Performs the | operation.

impl BitOr<H128> for H128
[src]

Moving BitOr

The resulting type after applying the | operator.

Performs the | operation.

impl Hash for H128
[src]

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

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

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

Moving BitAnd

The resulting type after applying the & operator.

Performs the & operation.

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

BitAnd on references

The resulting type after applying the & operator.

Performs the & operation.

impl Index<RangeFull> for H128
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<usize> for H128
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<RangeFull> for H128
[src]

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

impl IndexMut<usize> for H128
[src]

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

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

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

impl From<u64> for H128
[src]

Performs the conversion.

impl From<H128> for [u8; 16]
[src]

Performs the conversion.

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

Performs the conversion.

impl From<[u8; 16]> for H128
[src]

Performs the conversion.

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

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

Performs the conversion.

Auto Trait Implementations

impl Send for H128

impl Sync for H128