[−][src]Struct chain::hash::H160
Methods
impl H160[src]
impl H160pub fn take(self) -> [u8; 20][src]
pub fn take(self) -> [u8; 20]pub fn reversed(&self) -> H160[src]
pub fn reversed(&self) -> H160pub fn size() -> usize[src]
pub fn size() -> usizepub fn is_zero(&self) -> bool[src]
pub fn is_zero(&self) -> boolTrait Implementations
impl Eq for H160[src]
impl Eq for H160impl PartialEq<H160> for H160[src]
impl PartialEq<H160> for H160fn eq(&self, other: &H160) -> bool[src]
fn eq(&self, other: &H160) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Debug for H160[src]
impl Debug for H160fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl FromStr for H160[src]
impl FromStr for H160type Err = FromHexError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<H160, <H160 as FromStr>::Err>[src]
fn from_str(s: &str) -> Result<H160, <H160 as FromStr>::Err>Parses a string s to return a value of this type. Read more
impl Deref for H160[src]
impl Deref for H160type Target = [u8; 20]
The resulting type after dereferencing.
fn deref(&self) -> &<H160 as Deref>::Target[src]
fn deref(&self) -> &<H160 as Deref>::TargetDereferences the value.
impl AsRef<H160> for H160[src]
impl AsRef<H160> for H160impl Hash for H160[src]
impl Hash for H160fn hash<H>(&self, state: &mut H) where
H: Hasher, [src]
fn hash<H>(&self, state: &mut H) where
H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl From<u8> for H160[src]
impl From<u8> for H160impl<'a> From<&'a [u8]> for H160[src]
impl<'a> From<&'a [u8]> for H160impl From<H160> for [u8; 20][src]
impl From<H160> for [u8; 20]impl From<[u8; 20]> for H160[src]
impl From<[u8; 20]> for H160impl From<&'static str> for H160[src]
impl From<&'static str> for H160impl PartialOrd<H160> for H160[src]
impl PartialOrd<H160> for H160fn partial_cmp(&self, other: &H160) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &H160) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl HeapSizeOf for H160
impl HeapSizeOf for H160fn heap_size_of_children(&self) -> usize
fn heap_size_of_children(&self) -> usizeMeasure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more
impl Display for H160[src]
impl Display for H160fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for H160[src]
impl Clone for H160fn clone(&self) -> H160[src]
fn clone(&self) -> H160Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl DerefMut for H160[src]
impl DerefMut for H160impl Default for H160[src]
impl Default for H160impl Serializable for H160[src]
impl Serializable for H160fn serialize(&self, stream: &mut Stream)[src]
fn serialize(&self, stream: &mut Stream)Serialize the struct and appends it to the end of stream.
fn serialized_size(&self) -> usize[src]
fn serialized_size(&self) -> usizeHint about the size of serialized struct.
fn serialized_size_with_flags(&self, flags: u32) -> usize[src]
fn serialized_size_with_flags(&self, flags: u32) -> usizeHint about the size of serialized struct with given flags.
impl Deserializable for H160[src]
impl Deserializable for H160Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T[src]
impl<T> From for Timpl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 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