pub struct DerivationPath(/* private fields */);
Implementations§
source§impl DerivationPath
impl DerivationPath
pub fn from_key_str(path: &str) -> Result<Self, DerivationPathError>
pub fn from_absolute_path_str(path: &str) -> Result<Self, DerivationPathError>
pub fn new_bip44(account: Option<u32>, change: Option<u32>) -> Self
pub fn account(&self) -> Option<&ChildIndex>
pub fn change(&self) -> Option<&ChildIndex>
pub fn path(&self) -> &[ChildIndex]
pub fn get_query(&self) -> String
pub fn from_uri_key_query( uri: &URIReference<'_>, ) -> Result<Option<Self>, DerivationPathError>
pub fn from_uri_any_query( uri: &URIReference<'_>, ) -> Result<Option<Self>, DerivationPathError>
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 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 Default for DerivationPath
impl Default for DerivationPath
source§impl<'a> IntoIterator for &'a DerivationPath
impl<'a> IntoIterator for &'a DerivationPath
source§impl PartialEq for DerivationPath
impl PartialEq for DerivationPath
source§impl TryFrom<&str> for DerivationPath
impl TryFrom<&str> for DerivationPath
impl Eq 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 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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