[−][src]Struct hdwallet::key_chain::chain_path::ChainPath
ChainPath is used to describe BIP-32 KeyChain path.
Examples
use hdwallet::{ChainPath, SubPath, KeyIndex}; let chain_path = ChainPath::from("m/2147483649H/1".to_string()) .iter() .collect::<Result<Vec<_>, _>>() .unwrap(); assert_eq!(chain_path, vec![ SubPath::Root, SubPath::Child(KeyIndex::hardened_from_normalize_index(1).unwrap()), SubPath::Child(KeyIndex::Normal(1)) ]);
Methods
impl ChainPath
[src]
pub fn iter(&self) -> impl Iterator<Item = Result<SubPath, Error>> + '_
[src]
An SubPath iterator over the ChainPath from Root to child keys.
pub fn into_string(self) -> String
[src]
Trait Implementations
impl PartialEq<ChainPath> for ChainPath
[src]
impl From<String> for ChainPath
[src]
impl<'_> From<&'_ str> for ChainPath
[src]
impl Eq for ChainPath
[src]
impl Display for ChainPath
[src]
impl Debug for ChainPath
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,