Struct tapyrus::util::bip32::DerivationPath
source · pub struct DerivationPath(/* private fields */);
Expand description
A BIP-32 derivation path.
Implementations§
source§impl DerivationPath
impl DerivationPath
sourcepub fn child(&self, cn: ChildNumber) -> DerivationPath
pub fn child(&self, cn: ChildNumber) -> DerivationPath
Create a new DerivationPath that is a child of this one.
sourcepub fn into_child(self, cn: ChildNumber) -> DerivationPath
pub fn into_child(self, cn: ChildNumber) -> DerivationPath
Convert into a DerivationPath that is a child of this one.
sourcepub fn children_from(&self, cn: ChildNumber) -> DerivationPathIterator<'_> ⓘ
pub fn children_from(&self, cn: ChildNumber) -> DerivationPathIterator<'_> ⓘ
Get an Iterator over the children of this DerivationPath starting with the given ChildNumber.
sourcepub fn normal_children(&self) -> DerivationPathIterator<'_> ⓘ
pub fn normal_children(&self) -> DerivationPathIterator<'_> ⓘ
Get an Iterator over the unhardened children of this DerivationPath.
sourcepub fn hardened_children(&self) -> DerivationPathIterator<'_> ⓘ
pub fn hardened_children(&self) -> DerivationPathIterator<'_> ⓘ
Get an Iterator over the hardened children of this DerivationPath.
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§fn clone(&self) -> DerivationPath
fn clone(&self) -> DerivationPath
Returns a copy of the value. Read more
1.0.0 · 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
source§impl<'a> From<&'a [ChildNumber]> for DerivationPath
impl<'a> From<&'a [ChildNumber]> for DerivationPath
source§fn from(numbers: &'a [ChildNumber]) -> Self
fn from(numbers: &'a [ChildNumber]) -> Self
Converts to this type from the input type.
source§impl From<Vec<ChildNumber>> for DerivationPath
impl From<Vec<ChildNumber>> for DerivationPath
source§fn from(numbers: Vec<ChildNumber>) -> Self
fn from(numbers: Vec<ChildNumber>) -> Self
Converts to this type from the input type.
source§impl FromIterator<ChildNumber> for DerivationPath
impl FromIterator<ChildNumber> for DerivationPath
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ChildNumber>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ChildNumber>,
Creates a value from an iterator. Read more
source§impl FromStr for DerivationPath
impl FromStr for DerivationPath
source§impl Hash for DerivationPath
impl Hash for DerivationPath
source§impl Index<Range<usize>> for DerivationPath
impl Index<Range<usize>> for DerivationPath
§type Output = [ChildNumber]
type Output = [ChildNumber]
The returned type after indexing.
source§impl Index<RangeFrom<usize>> for DerivationPath
impl Index<RangeFrom<usize>> for DerivationPath
§type Output = [ChildNumber]
type Output = [ChildNumber]
The returned type after indexing.
source§impl Index<RangeFull> for DerivationPath
impl Index<RangeFull> for DerivationPath
§type Output = [ChildNumber]
type Output = [ChildNumber]
The returned type after indexing.
source§impl Index<RangeTo<usize>> for DerivationPath
impl Index<RangeTo<usize>> for DerivationPath
§type Output = [ChildNumber]
type Output = [ChildNumber]
The returned type after indexing.
source§impl Into<Vec<ChildNumber>> for DerivationPath
impl Into<Vec<ChildNumber>> for DerivationPath
source§fn into(self) -> Vec<ChildNumber>
fn into(self) -> Vec<ChildNumber>
Converts this type into the (usually inferred) input type.
source§impl<'a> IntoIterator for &'a DerivationPath
impl<'a> IntoIterator for &'a DerivationPath
source§impl Ord for DerivationPath
impl Ord for DerivationPath
source§fn cmp(&self, other: &DerivationPath) -> Ordering
fn cmp(&self, other: &DerivationPath) -> Ordering
1.21.0 · 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 DerivationPath
impl PartialEq for DerivationPath
source§fn eq(&self, other: &DerivationPath) -> bool
fn eq(&self, other: &DerivationPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DerivationPath
impl PartialOrd for DerivationPath
source§fn partial_cmp(&self, other: &DerivationPath) -> Option<Ordering>
fn partial_cmp(&self, other: &DerivationPath) -> Option<Ordering>
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 Eq for DerivationPath
impl StructuralEq for DerivationPath
impl StructuralPartialEq for DerivationPath
Auto Trait Implementations§
impl RefUnwindSafe for DerivationPath
impl Send for DerivationPath
impl Sync for DerivationPath
impl Unpin 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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.