[−][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 Debug for ChainPath
[src]
impl Display for ChainPath
[src]
impl Eq for ChainPath
[src]
impl<'_> From<&'_ str> for ChainPath
[src]
impl From<String> for ChainPath
[src]
impl PartialEq<ChainPath> for ChainPath
[src]
impl StructuralEq for ChainPath
[src]
impl StructuralPartialEq for ChainPath
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChainPath
impl Send for ChainPath
impl Sync for ChainPath
impl Unpin for ChainPath
impl UnwindSafe for ChainPath
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> 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, U> TryFrom<U> 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, U> TryInto<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,