Struct bitcoin::util::hash::Ripemd160Hash
[−]
[src]
pub struct Ripemd160Hash(_);
A RIPEMD-160 hash
Methods
impl Ripemd160Hash
[src]
fn as_ptr(&self) -> *const u8
Converts the object to a raw pointer
fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer
fn len(&self) -> usize
Returns the length of the object as an array
fn is_empty(&self) -> bool
Returns whether the object, as an array, is empty. Always false.
impl Ripemd160Hash
[src]
fn from_data(data: &[u8]) -> Ripemd160Hash
Create a hash by hashing some data
Trait Implementations
impl<'a> From<&'a [u8]> for Ripemd160Hash
[src]
fn from(data: &'a [u8]) -> Ripemd160Hash
Performs the conversion.
impl Index<usize> for Ripemd160Hash
[src]
type Output = u8
The returned type after indexing
fn index(&self, index: usize) -> &u8
The method for the indexing (Foo[Bar]
) operation
impl Index<Range<usize>> for Ripemd160Hash
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: Range<usize>) -> &[u8]
The method for the indexing (Foo[Bar]
) operation
impl Index<RangeTo<usize>> for Ripemd160Hash
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: RangeTo<usize>) -> &[u8]
The method for the indexing (Foo[Bar]
) operation
impl Index<RangeFrom<usize>> for Ripemd160Hash
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: RangeFrom<usize>) -> &[u8]
The method for the indexing (Foo[Bar]
) operation
impl Index<RangeFull> for Ripemd160Hash
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, _: RangeFull) -> &[u8]
The method for the indexing (Foo[Bar]
) operation
impl PartialEq for Ripemd160Hash
[src]
fn eq(&self, other: &Ripemd160Hash) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Ripemd160Hash
[src]
impl PartialOrd for Ripemd160Hash
[src]
fn partial_cmp(&self, other: &Ripemd160Hash) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Ripemd160Hash
[src]
fn cmp(&self, other: &Ripemd160Hash) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Clone for Ripemd160Hash
[src]
fn clone(&self) -> Ripemd160Hash
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Ripemd160Hash
[src]
impl Hash for Ripemd160Hash
[src]
fn hash<H>(&self, state: &mut H) where H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Ripemd160Hash], state: &mut H) where H: Hasher
Feeds a slice of this type into the state provided.
impl Rand for Ripemd160Hash
[src]
fn rand<R: Rng>(r: &mut R) -> Ripemd160Hash
Generates a random instance of this type using the specified source of randomness. Read more