Struct pwasm_std::hash::H256
[−]
[src]
#[repr(C)]pub struct H256(pub [u8; 32]);
Unformatted binary data of fixed length.
Methods
impl H256[src]
fn new() -> H256[src]
Create a new, zero-initialised, instance.
fn zero() -> H256[src]
Synonym for new(). Prefer to new as it's more readable.
fn len() -> usize[src]
Get the size of this object in bytes.
fn as_ptr(&self) -> *const u8[src]
Returns a constant raw pointer to the value
fn as_mut_ptr(&mut self) -> *mut u8[src]
Returns a mutable raw pointer to the value
fn clone_from_slice(&mut self, src: &[u8]) -> usize[src]
Assign self to be of the same value as a slice of bytes of length len().
fn from_slice(src: &[u8]) -> H256[src]
Convert a slice of bytes of length len() to an instance of this type.
fn copy_to(&self, dest: &mut [u8])[src]
Copy the data of this object into some mutable slice of length len().
fn contains(&'a self, b: &'a H256) -> bool[src]
Returns true if all bits set in b are also set in self.
fn is_zero(&self) -> bool[src]
Returns true if no bits are set.
fn low_u64(&self) -> u64[src]
Returns the lowest 8 bytes interpreted as a BigEndian integer.
Trait Implementations
impl PartialOrd<H256> for H256[src]
fn partial_cmp(&self, other: &H256) -> Option<Ordering>[src]
impl PartialEq<H256> for H256[src]
impl<'a> BitOr<&'a H256> for &'a H256[src]
BitOr on references
impl BitOr<H256> for H256[src]
Moving BitOr
impl BitXor<H256> for H256[src]
Moving BitXor
impl<'a> BitXor<&'a H256> for &'a H256[src]
BitXor on references
impl Deref for H256[src]
type Target = [u8]
The resulting type after dereferencing.
fn deref(&self) -> &[u8][src]
Dereferences the value.
impl Clone for H256[src]
impl AsMut<[u8]> for H256[src]
impl Copy for H256[src]
impl Hash for H256[src]
impl AsRef<[u8]> for H256[src]
impl Ord for H256[src]
impl From<[u8; 32]> for H256[src]
impl<'a> From<&'a U256> for H256[src]
impl From<U256> for H256[src]
impl<'a> From<&'a [u8]> for H256[src]
impl From<u64> for H256[src]
impl From<H160> for H256[src]
impl<'a> From<&'a H160> for H256[src]
impl BitAnd<H256> for H256[src]
Moving BitAnd
impl<'a> BitAnd<&'a H256> for &'a H256[src]
BitAnd on references