Struct H160

Source
pub struct H160(pub [u8; 20]);
Expand description

Fixed hash type.

Tuple Fields§

§0: [u8; 20]

Implementations§

Source§

impl H160

Source

pub const fn repeat_byte(byte: u8) -> Self

Return a new fixed hash where all bytes are set to the given byte.

Source

pub const fn zero() -> Self

👎Deprecated since 0.1.5: Please use the empty function instead

Create a new fixed hash and all bits of it are zeros.

Source

pub fn is_zero(&self) -> bool

👎Deprecated since 0.1.5: Please use the is_empty function instead

Test if all bits of a fixed hash are zero.

Source

pub fn is_max(&self) -> bool

👎Deprecated since 0.1.5: Please use the is_full function instead

Test if all bits of a fixed hash are one.

Source

pub const fn empty() -> Self

Create a new fixed hash and all bits of it are zero.

Source

pub fn is_empty(&self) -> bool

Test if all bits of a fixed hash are zero.

Source

pub const fn full() -> Self

Create a new fixed hash and all bits of it are one.

Source

pub fn is_full(&self) -> bool

Test if all bits of a fixed hash are one.

Source

pub fn covers(&self, hash: &Self) -> bool

Test if all bits set in a hash are also set in self.

Source

pub const fn count_bits() -> u64

Return the count of bits.

Source

pub fn bit(&self, index: usize) -> Option<bool>

Return a specific bit, or return None when overlows.

Order from low to high.

Source

pub fn set_bit(&mut self, index: usize, value: bool) -> bool

Set a specific bit. Return false when overflows.

Order from low to high.

Source

pub fn highest_one(&self) -> Option<usize>

Return the highest bit which is one.

Order from low to high.

Source

pub fn lowest_one(&self) -> Option<usize>

Return the lowest bit which is one.

Order from low to high.

Source

pub const fn count_bytes() -> u64

Return the count of bytes.

Source

pub fn byte(&self, index: usize) -> Option<u8>

Return a specific byte, or return None when overlows.

Source

pub fn set_byte(&mut self, index: usize, byte: u8) -> bool

Set a specific byte. Return false when overflows;

Source

pub fn highest_nonzero_byte(&self) -> Option<usize>

Return the highest byte which is nonzero.

Source

pub fn lowest_nonzero_byte(&self) -> Option<usize>

Return the lowest byte which is nonzero.

Source

pub fn as_bytes(&self) -> &[u8]

Get the inner bytes slice of a fixed hash.

Source

pub fn as_bytes_mut(&mut self) -> &mut [u8]

Get the mutable inner bytes slice of a fixed hash.

Source

pub fn as_fixed_bytes(&self) -> &[u8; 20]

Get the inner bytes of a fixed hash.

Source

pub fn as_fixed_bytes_mut(&mut self) -> &mut [u8; 20]

Get the mutable inner bytes of a fixed hash.

Source

pub fn into_fixed_bytes(self) -> [u8; 20]

Get the inner bytes array of a fixed hash.

Source

pub fn to_vec(&self) -> Vec<u8>

Get a vec of a fixed hash.

Source

pub fn as_ptr(&self) -> *const u8

Get a constant raw pointer to the inner bytes array of a fixed hash.

Source

pub fn as_mut_ptr(&mut self) -> *mut u8

Get a mutable raw pointer to the inner bytes array of a fixed hash.

Source

pub const fn size_of() -> usize

Return the size used by this type in bytes, actually.

This size is greater than or equal to the bytes of this fixed type.

Source

pub fn from_slice(input: &[u8]) -> Result<Self, FixedHashError>

Convert from slice.

Source

pub fn into_slice(&self, output: &mut [u8]) -> Result<(), FixedHashError>

Convert into slice.

Source

pub fn from_hex_str(input: &str) -> Result<Self, FixedHashError>

Convert from a fixed length hexadecimal string.

Source

pub fn from_trimmed_hex_str(input: &str) -> Result<Self, FixedHashError>

Convert from an arbitrary length zero-trimmed hexadecimal string. Fisrt char should not be zero if the input has more than one char.

Source

pub const fn min_value() -> Self

Returns the smallest value that can be represented by this integer type.

Source

pub const fn max_value() -> Self

Returns the largest value that can be represented by this integer type.

Source

pub fn count_ones(&self) -> u32

Returns the number of ones in the binary representation of self.

Source

pub fn count_zeros(&self) -> u32

Returns the number of zeros in the binary representation of self.

Source

pub fn leading_zeros(&self) -> u32

Returns the number of leading zeros in the binary representation of self.

Source

pub fn trailing_zeros(&self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Source

pub fn checked_shl(&self, rhs: u128) -> Option<Self>

Checked shift left. Computes self << rhs, returning None if rhs is larger than or equal to the number of bits in self.

Source

pub fn checked_shr(&self, rhs: u128) -> Option<Self>

Checked shift right. Computes self >> rhs, returning None if rhs is larger than or equal to the number of bits in self.

Source

pub fn overflowing_shl(&self, rhs: u128) -> (Self, bool)

Shifts self left by rhs bits.

Returns a tuple of the shifted version of self along with a boolean indicating whether the shift value was larger than or equal to the number of bits. If the shift value is too large, then value is masked (N-1) where N is the number of bits, and this value is then used to perform the shift.

Source

pub fn overflowing_shr(&self, rhs: u128) -> (Self, bool)

Shifts self right by rhs bits.

Returns a tuple of the shifted version of self along with a boolean indicating whether the shift value was larger than or equal to the number of bits. If the shift value is too large, then value is masked (N-1) where N is the number of bits, and this value is then used to perform the shift.

Trait Implementations§

Source§

impl AsMut<[u8]> for H160

Source§

fn as_mut(&mut self) -> &mut [u8]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<[u8]> for H160

Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'a, 'b> BitAnd<&'b H160> for &'a H160

Source§

type Output = H160

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &H160) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a H160> for H160

Source§

type Output = H160

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &H160) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, Rhs> BitAnd<Rhs> for &'a H160
where Rhs: Into<H160>,

Source§

type Output = H160

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Rhs) -> Self::Output

Performs the & operation. Read more
Source§

impl<Rhs> BitAnd<Rhs> for H160
where Rhs: Into<H160>,

Source§

type Output = H160

The resulting type after applying the & operator.
Source§

fn bitand(self, other: Rhs) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAndAssign<&'a H160> for H160

Source§

fn bitand_assign(&mut self, other: &H160)

Performs the &= operation. Read more
Source§

impl<Rhs> BitAndAssign<Rhs> for H160
where Rhs: Into<H160>,

Source§

fn bitand_assign(&mut self, other: Rhs)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitOr<&'b H160> for &'a H160

Source§

type Output = H160

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &H160) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a H160> for H160

Source§

type Output = H160

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &H160) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, Rhs> BitOr<Rhs> for &'a H160
where Rhs: Into<H160>,

Source§

type Output = H160

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Rhs) -> Self::Output

Performs the | operation. Read more
Source§

impl<Rhs> BitOr<Rhs> for H160
where Rhs: Into<H160>,

Source§

type Output = H160

The resulting type after applying the | operator.
Source§

fn bitor(self, other: Rhs) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOrAssign<&'a H160> for H160

Source§

fn bitor_assign(&mut self, other: &H160)

Performs the |= operation. Read more
Source§

impl<Rhs> BitOrAssign<Rhs> for H160
where Rhs: Into<H160>,

Source§

fn bitor_assign(&mut self, other: Rhs)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitXor<&'b H160> for &'a H160

Source§

type Output = H160

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &H160) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a H160> for H160

Source§

type Output = H160

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &H160) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, Rhs> BitXor<Rhs> for &'a H160
where Rhs: Into<H160>,

Source§

type Output = H160

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Rhs) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<Rhs> BitXor<Rhs> for H160
where Rhs: Into<H160>,

Source§

type Output = H160

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: Rhs) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXorAssign<&'a H160> for H160

Source§

fn bitxor_assign(&mut self, other: &H160)

Performs the ^= operation. Read more
Source§

impl<Rhs> BitXorAssign<Rhs> for H160
where Rhs: Into<H160>,

Source§

fn bitxor_assign(&mut self, other: Rhs)

Performs the ^= operation. Read more
Source§

impl Clone for H160

Source§

fn clone(&self) -> H160

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for H160

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for H160

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for H160

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a [u8; 20]> for H160

Source§

fn from(bytes: &'a [u8; 20]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a H160> for U160

Source§

fn from(h: &H160) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a U160> for H160

Source§

fn from(u: &U160) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 20]> for H160

Source§

fn from(bytes: [u8; 20]) -> Self

Converts to this type from the input type.
Source§

impl From<H160> for [u8; 20]

Source§

fn from(hash: H160) -> Self

Converts to this type from the input type.
Source§

impl From<H160> for U160

Source§

fn from(h: H160) -> Self

Converts to this type from the input type.
Source§

impl From<U160> for H160

Source§

fn from(u: U160) -> Self

Converts to this type from the input type.
Source§

impl FromStr for H160

Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Convert from a hexadecimal string.

Source§

type Err = FixedHashError

The associated error which can be returned from parsing.
Source§

impl Hash for H160

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl HashConvert<H1024> for H160

Source§

fn convert_into(&self) -> (H1024, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H128> for H160

Source§

fn convert_into(&self) -> (H128, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H1024

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H128

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H2048

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H224

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H256

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H384

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H4096

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H512

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H160> for H520

Source§

fn convert_into(&self) -> (H160, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H2048> for H160

Source§

fn convert_into(&self) -> (H2048, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H224> for H160

Source§

fn convert_into(&self) -> (H224, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H256> for H160

Source§

fn convert_into(&self) -> (H256, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H384> for H160

Source§

fn convert_into(&self) -> (H384, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H4096> for H160

Source§

fn convert_into(&self) -> (H4096, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H512> for H160

Source§

fn convert_into(&self) -> (H512, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl HashConvert<H520> for H160

Source§

fn convert_into(&self) -> (H520, bool)

Convert a fixed hash into another, return the new fixed hash and if it be truncated.
Source§

impl<Idx> Index<Idx> for H160
where Idx: SliceIndex<[u8], Output = [u8]>,

Source§

type Output = <Idx as SliceIndex<[u8]>>::Output

The returned type after indexing.
Source§

fn index(&self, index: Idx) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<Idx> IndexMut<Idx> for H160
where Idx: SliceIndex<[u8], Output = [u8]>,

Source§

fn index_mut(&mut self, index: Idx) -> &mut Idx::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl LowerHex for H160

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Not for &'a H160

Source§

type Output = H160

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for H160

Source§

type Output = H160

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Ord for H160

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for H160

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for H160

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

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

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'a, 'b> Shl<&'a i128> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i128) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a i128> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i128) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a i16> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i16) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a i16> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i16) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a i32> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a i32> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a i64> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i64) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a i64> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i64) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a i8> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i8) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a i8> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &i8) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a isize> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &isize) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a isize> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &isize) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a u128> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u128) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a u128> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u128) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a u16> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u16) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a u16> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u16) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a u32> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a u32> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a u64> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u64) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a u64> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u64) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a u8> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u8) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a u8> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &u8) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'a usize> for &'b H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &usize) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<&'a usize> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: &usize) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<i128> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i128> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i128) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<i16> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i16> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i16) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<i32> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i32> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<i64> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i64> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i64) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<i8> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i8> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: i8) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<isize> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: isize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<isize> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: isize) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<u128> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u128> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u128) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<u16> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u16> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u16) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<u32> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<u64> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u64> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u64) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<u8> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u8> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: u8) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> Shl<usize> for &'a H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: usize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<usize> for H160

Source§

type Output = H160

The resulting type after applying the << operator.
Source§

fn shl(self, other: usize) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a> ShlAssign<&'a i128> for H160

Source§

fn shl_assign(&mut self, other: &i128)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a i16> for H160

Source§

fn shl_assign(&mut self, other: &i16)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a i32> for H160

Source§

fn shl_assign(&mut self, other: &i32)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a i64> for H160

Source§

fn shl_assign(&mut self, other: &i64)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a i8> for H160

Source§

fn shl_assign(&mut self, other: &i8)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a isize> for H160

Source§

fn shl_assign(&mut self, other: &isize)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a u128> for H160

Source§

fn shl_assign(&mut self, other: &u128)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a u16> for H160

Source§

fn shl_assign(&mut self, other: &u16)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a u32> for H160

Source§

fn shl_assign(&mut self, other: &u32)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a u64> for H160

Source§

fn shl_assign(&mut self, other: &u64)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a u8> for H160

Source§

fn shl_assign(&mut self, other: &u8)

Performs the <<= operation. Read more
Source§

impl<'a> ShlAssign<&'a usize> for H160

Source§

fn shl_assign(&mut self, other: &usize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i128> for H160

Source§

fn shl_assign(&mut self, other: i128)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i16> for H160

Source§

fn shl_assign(&mut self, other: i16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i32> for H160

Source§

fn shl_assign(&mut self, other: i32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i64> for H160

Source§

fn shl_assign(&mut self, other: i64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i8> for H160

Source§

fn shl_assign(&mut self, other: i8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<isize> for H160

Source§

fn shl_assign(&mut self, other: isize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u128> for H160

Source§

fn shl_assign(&mut self, other: u128)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u16> for H160

Source§

fn shl_assign(&mut self, other: u16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for H160

Source§

fn shl_assign(&mut self, other: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u64> for H160

Source§

fn shl_assign(&mut self, other: u64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u8> for H160

Source§

fn shl_assign(&mut self, other: u8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<usize> for H160

Source§

fn shl_assign(&mut self, other: usize)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> Shr<&'a i128> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i128) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a i128> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i128) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a i16> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a i16> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a i32> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a i32> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a i64> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i64) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a i64> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i64) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a i8> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i8) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a i8> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &i8) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a isize> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &isize) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a isize> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &isize) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a u128> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u128) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a u128> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u128) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a u16> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u16) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a u16> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u16) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a u32> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a u32> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a u64> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u64) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a u64> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u64) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a u8> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u8) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a u8> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &u8) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'a usize> for &'b H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &usize) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<&'a usize> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: &usize) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<i128> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i128> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i128) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<i16> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i16> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<i32> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i32> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<i64> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i64> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i64) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<i8> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i8> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: i8) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<isize> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: isize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<isize> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: isize) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<u128> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u128> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u128) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<u16> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u16> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u16) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<u32> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<u64> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u64> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u64) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<u8> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u8> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: u8) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> Shr<usize> for &'a H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: usize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<usize> for H160

Source§

type Output = H160

The resulting type after applying the >> operator.
Source§

fn shr(self, other: usize) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a> ShrAssign<&'a i128> for H160

Source§

fn shr_assign(&mut self, other: &i128)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a i16> for H160

Source§

fn shr_assign(&mut self, other: &i16)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a i32> for H160

Source§

fn shr_assign(&mut self, other: &i32)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a i64> for H160

Source§

fn shr_assign(&mut self, other: &i64)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a i8> for H160

Source§

fn shr_assign(&mut self, other: &i8)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a isize> for H160

Source§

fn shr_assign(&mut self, other: &isize)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a u128> for H160

Source§

fn shr_assign(&mut self, other: &u128)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a u16> for H160

Source§

fn shr_assign(&mut self, other: &u16)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a u32> for H160

Source§

fn shr_assign(&mut self, other: &u32)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a u64> for H160

Source§

fn shr_assign(&mut self, other: &u64)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a u8> for H160

Source§

fn shr_assign(&mut self, other: &u8)

Performs the >>= operation. Read more
Source§

impl<'a> ShrAssign<&'a usize> for H160

Source§

fn shr_assign(&mut self, other: &usize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i128> for H160

Source§

fn shr_assign(&mut self, other: i128)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i16> for H160

Source§

fn shr_assign(&mut self, other: i16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i32> for H160

Source§

fn shr_assign(&mut self, other: i32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i64> for H160

Source§

fn shr_assign(&mut self, other: i64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i8> for H160

Source§

fn shr_assign(&mut self, other: i8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<isize> for H160

Source§

fn shr_assign(&mut self, other: isize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u128> for H160

Source§

fn shr_assign(&mut self, other: u128)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u16> for H160

Source§

fn shr_assign(&mut self, other: u16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for H160

Source§

fn shr_assign(&mut self, other: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u64> for H160

Source§

fn shr_assign(&mut self, other: u64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u8> for H160

Source§

fn shr_assign(&mut self, other: u8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<usize> for H160

Source§

fn shr_assign(&mut self, other: usize)

Performs the >>= operation. Read more
Source§

impl UpperHex for H160

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for H160

Auto Trait Implementations§

§

impl Freeze for H160

§

impl RefUnwindSafe for H160

§

impl Send for H160

§

impl Sync for H160

§

impl Unpin for H160

§

impl UnwindSafe for H160

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.