pub struct DerivationPath(/* private fields */);Expand description
An ordered list of ChildIndex items, e.g. m/26'/2'/0'/1'.
Implementations§
Source§impl DerivationPath
impl DerivationPath
Sourcepub fn new<P: Into<Box<[ChildIndex]>>>(path: P) -> Self
pub fn new<P: Into<Box<[ChildIndex]>>>(path: P) -> Self
Build a path from a list of indexes.
Sourcepub fn path(&self) -> &[ChildIndex]
pub fn path(&self) -> &[ChildIndex]
The indexes, in order from the master key outward.
Trait Implementations§
Source§impl AsRef<[ChildIndex]> for DerivationPath
impl AsRef<[ChildIndex]> for DerivationPath
Source§fn as_ref(&self) -> &[ChildIndex]
fn as_ref(&self) -> &[ChildIndex]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for DerivationPath
impl Clone for DerivationPath
Source§fn clone(&self) -> DerivationPath
fn clone(&self) -> DerivationPath
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 moreSource§impl Debug for DerivationPath
impl Debug for DerivationPath
Source§impl Display for DerivationPath
impl Display for DerivationPath
impl Eq for DerivationPath
Source§impl FromStr for DerivationPath
impl FromStr for DerivationPath
Source§impl<'a> IntoIterator for &'a DerivationPath
impl<'a> IntoIterator for &'a DerivationPath
Source§impl PartialEq for DerivationPath
impl PartialEq for DerivationPath
impl StructuralPartialEq for DerivationPath
Auto Trait Implementations§
impl Freeze for DerivationPath
impl RefUnwindSafe for DerivationPath
impl Send for DerivationPath
impl Sync for DerivationPath
impl Unpin for DerivationPath
impl UnsafeUnpin for DerivationPath
impl UnwindSafe for DerivationPath
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.