pub struct ChainHash(/* private fields */);
Expand description
The uniquely identifying hash of the target blockchain.
Implementations§
source§impl ChainHash
impl ChainHash
sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChainHash
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ChainHash
Available on crate feature
serde
only.source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ChainHash, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ChainHash, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for ChainHash
impl Ord for ChainHash
source§impl PartialEq for ChainHash
impl PartialEq for ChainHash
source§impl PartialOrd for ChainHash
impl PartialOrd for ChainHash
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 moreimpl Copy for ChainHash
impl Eq for ChainHash
impl StructuralEq for ChainHash
impl StructuralPartialEq for ChainHash
Auto Trait Implementations§
impl RefUnwindSafe for ChainHash
impl Send for ChainHash
impl Sync for ChainHash
impl Unpin for ChainHash
impl UnwindSafe for ChainHash
Blanket Implementations§
source§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> ToBase32 for Twhere
T: AsRef<[u8]>,
impl<T> ToBase32 for Twhere T: AsRef<[u8]>,
source§fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where W: WriteBase32,
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.