pub struct XKeyIdentifier(/* private fields */);Expand description
Extended key identifier as defined in BIP-0032.
Implementations§
Source§impl XKeyIdentifier
impl XKeyIdentifier
Sourcepub const fn from_byte_array(bytes: <Hash as Hash>::Bytes) -> Self
pub const fn from_byte_array(bytes: <Hash as Hash>::Bytes) -> Self
Constructs a new hash from the underlying byte array.
Sourcepub const fn to_byte_array(self) -> <Hash as Hash>::Bytes
pub const fn to_byte_array(self) -> <Hash as Hash>::Bytes
Returns the underlying byte array.
Sourcepub const fn as_byte_array(&self) -> &<Hash as Hash>::Bytes
pub const fn as_byte_array(&self) -> &<Hash as Hash>::Bytes
Returns a reference to the underlying byte array.
Trait Implementations§
Source§impl AsRef<[u8]> for XKeyIdentifier
impl AsRef<[u8]> for XKeyIdentifier
Source§impl Borrow<[u8]> for XKeyIdentifier
impl Borrow<[u8]> for XKeyIdentifier
Source§impl Clone for XKeyIdentifier
impl Clone for XKeyIdentifier
Source§fn clone(&self) -> XKeyIdentifier
fn clone(&self) -> XKeyIdentifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for XKeyIdentifier
Source§impl Debug for XKeyIdentifier
impl Debug for XKeyIdentifier
Source§impl<'de> Deserialize<'de> for XKeyIdentifier
impl<'de> Deserialize<'de> for XKeyIdentifier
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<XKeyIdentifier, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<XKeyIdentifier, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for XKeyIdentifier
impl Display for XKeyIdentifier
impl Eq for XKeyIdentifier
Source§impl From<&Xpub> for XKeyIdentifier
impl From<&Xpub> for XKeyIdentifier
Source§impl From<Xpub> for XKeyIdentifier
impl From<Xpub> for XKeyIdentifier
Source§impl FromStr for XKeyIdentifier
impl FromStr for XKeyIdentifier
Source§impl Hash for XKeyIdentifier
impl Hash for XKeyIdentifier
Source§impl Hash for XKeyIdentifier
impl Hash for XKeyIdentifier
Source§const DISPLAY_BACKWARD: bool = <hash160::Hash as ::bitcoin_hashes::Hash>::DISPLAY_BACKWARD
const DISPLAY_BACKWARD: bool = <hash160::Hash as ::bitcoin_hashes::Hash>::DISPLAY_BACKWARD
Flag indicating whether user-visible serializations of this hash should be backward. Read more
Source§fn from_byte_array(bytes: Self::Bytes) -> Self
fn from_byte_array(bytes: Self::Bytes) -> Self
Constructs a new hash from the underlying byte array.
Source§fn to_byte_array(self) -> Self::Bytes
fn to_byte_array(self) -> Self::Bytes
Returns the underlying byte array.
Source§fn as_byte_array(&self) -> &Self::Bytes
fn as_byte_array(&self) -> &Self::Bytes
Returns a reference to the underlying byte array.
Source§impl LowerHex for XKeyIdentifier
impl LowerHex for XKeyIdentifier
Source§impl Ord for XKeyIdentifier
impl Ord for XKeyIdentifier
Source§fn cmp(&self, other: &XKeyIdentifier) -> Ordering
fn cmp(&self, other: &XKeyIdentifier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for XKeyIdentifier
impl PartialEq for XKeyIdentifier
Source§fn eq(&self, other: &XKeyIdentifier) -> bool
fn eq(&self, other: &XKeyIdentifier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for XKeyIdentifier
impl PartialOrd for XKeyIdentifier
Source§impl Serialize for XKeyIdentifier
impl Serialize for XKeyIdentifier
impl StructuralPartialEq for XKeyIdentifier
Auto Trait Implementations§
impl Freeze for XKeyIdentifier
impl RefUnwindSafe for XKeyIdentifier
impl Send for XKeyIdentifier
impl Sync for XKeyIdentifier
impl Unpin for XKeyIdentifier
impl UnsafeUnpin for XKeyIdentifier
impl UnwindSafe for XKeyIdentifier
Blanket Implementations§
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