pub struct HashValue(_);
Implementations§
source§impl HashValue
impl HashValue
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn len() -> usize
pub fn to_hex_string(&self) -> String
pub fn from_hex_string(s: &str) -> BuckyResult<Self>
pub fn to_base58(&self) -> String
pub fn from_base58(s: &str) -> BuckyResult<Self>
pub fn clone_from_slice(hash: &[u8]) -> BuckyResult<Self>
Trait Implementations§
source§impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for HashValue
impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for HashValue
source§impl<'de> Deserialize<'de> for HashValue
impl<'de> Deserialize<'de> for HashValue
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for HashValue
impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for HashValue
source§impl FromStr for HashValue
impl FromStr for HashValue
§type Err = BuckyError
type Err = BuckyError
The associated error which can be returned from parsing.
source§impl Ord for HashValue
impl Ord for HashValue
source§impl PartialEq<HashValue> for HashValue
impl PartialEq<HashValue> for HashValue
source§impl PartialOrd<HashValue> for HashValue
impl PartialOrd<HashValue> for HashValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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