[−][src]Struct sv::util::Hash256
256-bit hash for blocks and transactions
It is interpreted as a single little-endian number for display.
Methods
impl Hash256
[src]
impl Hash256
pub fn encode(&self) -> String
[src]
pub fn encode(&self) -> String
Converts the hash into a hex string
pub fn decode(s: &str) -> Result<Hash256>
[src]
pub fn decode(s: &str) -> Result<Hash256>
Converts a string of 64 hex characters into a hash
Trait Implementations
impl Serializable<Hash256> for Hash256
[src]
impl Serializable<Hash256> for Hash256
fn read(reader: &mut dyn Read) -> Result<Hash256>
[src]
fn read(reader: &mut dyn Read) -> Result<Hash256>
fn write(&self, writer: &mut dyn Write) -> Result<()>
[src]
fn write(&self, writer: &mut dyn Write) -> Result<()>
impl Clone for Hash256
[src]
impl Clone for Hash256
fn clone(&self) -> Hash256
[src]
fn clone(&self) -> Hash256
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 Copy for Hash256
[src]
impl Copy for Hash256
impl Eq for Hash256
[src]
impl Eq for Hash256
impl PartialOrd<Hash256> for Hash256
[src]
impl PartialOrd<Hash256> for Hash256
fn partial_cmp(&self, other: &Hash256) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Hash256) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
This 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) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Default for Hash256
[src]
impl Default for Hash256
impl PartialEq<Hash256> for Hash256
[src]
impl PartialEq<Hash256> for Hash256
impl Ord for Hash256
[src]
impl Ord for Hash256
fn cmp(&self, other: &Hash256) -> Ordering
[src]
fn cmp(&self, other: &Hash256) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Debug for Hash256
[src]
impl Debug for Hash256
impl Hash for Hash256
[src]
impl Hash for Hash256
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
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>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
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>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
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
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self