pub struct DerivationPath { /* private fields */ }Expand description
Derivation paths within a hierarchical keyspace.
Implementations§
Source§impl DerivationPath
impl DerivationPath
Sourcepub fn iter(&self) -> impl Iterator<Item = ChildNumber> + '_
pub fn iter(&self) -> impl Iterator<Item = ChildNumber> + '_
Iterate over the ChildNumber values in this derivation path.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Get the count of ChildNumber values in this derivation path.
Sourcepub fn parent(&self) -> Option<Self>
pub fn parent(&self) -> Option<Self>
Get the parent DerivationPath for the current one.
Returns None if this is already the root path.
Sourcepub fn push(&mut self, child_number: ChildNumber)
pub fn push(&mut self, child_number: ChildNumber)
Push a ChildNumber onto an existing derivation path.
Trait Implementations§
Source§impl AsRef<[ChildNumber]> for DerivationPath
impl AsRef<[ChildNumber]> for DerivationPath
Source§fn as_ref(&self) -> &[ChildNumber]
fn as_ref(&self) -> &[ChildNumber]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for DerivationPath
impl Clone for DerivationPath
Source§impl Debug for DerivationPath
impl Debug for DerivationPath
Source§impl Default for DerivationPath
impl Default for DerivationPath
Source§impl<'de> Deserialize<'de> for DerivationPath
impl<'de> Deserialize<'de> for DerivationPath
Source§fn deserialize<D>(deserializer: D) -> Result<DerivationPath, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<DerivationPath, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DerivationPath
impl Display for DerivationPath
impl Eq for DerivationPath
Source§impl Extend<ChildNumber> for DerivationPath
impl Extend<ChildNumber> for DerivationPath
Source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ChildNumber>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ChildNumber>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromStr for DerivationPath
impl FromStr for DerivationPath
Source§impl IntoIterator for DerivationPath
impl IntoIterator for DerivationPath
Source§impl PartialEq for DerivationPath
impl PartialEq for DerivationPath
Source§impl Serialize for DerivationPath
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more