Struct pwasm_std::hash::H256 [] [src]

#[repr(C)]
pub struct H256(pub [u8; 32]);

Unformatted binary data of fixed length.

Methods

impl H256
[src]

[src]

Create a new, zero-initialised, instance.

[src]

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

[src]

Get the size of this object in bytes.

[src]

Returns a constant raw pointer to the value

[src]

Returns a mutable raw pointer to the value

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns true if no bits are set.

[src]

Returns the lowest 8 bytes interpreted as a BigEndian integer.

Trait Implementations

impl DerefMut for H256
[src]

[src]

Mutably dereferences the value.

impl Hash for H256
[src]

[src]

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

1.3.0
[src]

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

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

BitOr on references

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl BitOr<H256> for H256
[src]

Moving BitOr

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl Ord for H256
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Copy for H256
[src]

impl PartialOrd<H256> for H256
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

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

[src]

Performs the conversion.

impl BitAnd<H256> for H256
[src]

Moving BitAnd

The resulting type after applying the & operator.

[src]

Performs the & operation.

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

BitAnd on references

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl Clone for H256
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Index<usize> for H256
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl Index<RangeFull> for H256
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

[src]

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

impl IndexMut<RangeFull> for H256
[src]

[src]

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

impl IndexMut<usize> for H256
[src]

[src]

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

impl From<H160> for H256
[src]

[src]

Performs the conversion.

impl From<[u8; 32]> for H256
[src]

[src]

Performs the conversion.

impl From<H256> for U256
[src]

[src]

Performs the conversion.

impl<'a> From<&'a H160> for H256
[src]

[src]

Performs the conversion.

impl From<H256> for H64
[src]

[src]

Performs the conversion.

impl<'a> From<&'a U256> for H256
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<u64> for H256
[src]

[src]

Performs the conversion.

impl From<H256> for H160
[src]

[src]

Performs the conversion.

impl From<H256> for [u8; 32]
[src]

[src]

Performs the conversion.

impl From<U256> for H256
[src]

[src]

Performs the conversion.

impl<'a> From<&'a H256> for U256
[src]

[src]

Performs the conversion.

impl Default for H256
[src]

[src]

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

impl Eq for H256
[src]

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

BitXor on references

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl BitXor<H256> for H256
[src]

Moving BitXor

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl Deref for H256
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

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

[src]

Performs the conversion.

impl PartialEq<H256> for H256
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl Send for H256

impl Sync for H256