[][src]Struct slip10::path::BIP32Path

pub struct BIP32Path(_);

A path structure defined by BIP 32.

Implementations

impl BIP32Path[src]

pub fn from_str(path: &str) -> Result<BIP32Path, Error>[src]

Create a BIP32Path form string literals.

pub fn depth(&self) -> u8[src]

Return the depth of the BIP32Path. For example, "m/0'/0'" will have depth of 2.

pub fn index(&self, depth: u8) -> Option<&u32>[src]

Return the index value of corresponding depth in the BIP32Path.

pub fn push(&mut self, index: u32)[src]

Push one index to the BIP32Path.

pub fn pop(&mut self) -> Option<u32>[src]

Pop last index of the BIP32Path.

Trait Implementations

impl Clone for BIP32Path[src]

impl Debug for BIP32Path[src]

impl Eq for BIP32Path[src]

impl From<Vec<u32>> for BIP32Path[src]

impl Ord for BIP32Path[src]

impl PartialEq<BIP32Path> for BIP32Path[src]

impl PartialOrd<BIP32Path> for BIP32Path[src]

impl StructuralEq for BIP32Path[src]

impl StructuralPartialEq for BIP32Path[src]

Auto Trait Implementations

impl Send for BIP32Path

impl Sync for BIP32Path

impl Unpin for BIP32Path

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.