Enum wallet::bip32::BranchStep[][src]

pub enum BranchStep {
    Normal(u32),
    Hardened {
        index: u32,
        xpub_ref: Option<XpubRef>,
    },
}

Variants

Normal(u32)
Hardened

Fields of Hardened

index: u32xpub_ref: Option<XpubRef>

Implementations

impl BranchStep[src]

pub fn zero_hardened() -> Self[src]

pub fn one_hardened() -> Self[src]

pub fn with_xpub(hardened: HardenedIndex, xpub: XpubRef) -> Self[src]

pub fn xpub_ref(&self) -> Option<&XpubRef>[src]

Trait Implementations

impl ChildIndex for BranchStep[src]

impl Clone for BranchStep[src]

impl Debug for BranchStep[src]

impl Display for BranchStep[src]

impl Eq for BranchStep[src]

impl From<ChildNumber> for BranchStep[src]

impl From<HardenedIndex> for BranchStep[src]

impl From<UnhardenedIndex> for BranchStep[src]

impl From<u16> for BranchStep[src]

impl From<u8> for BranchStep[src]

impl FromStr for BranchStep[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for BranchStep[src]

impl Ord for BranchStep[src]

impl PartialEq<BranchStep> for BranchStep[src]

impl PartialOrd<BranchStep> for BranchStep[src]

impl StrictDecode for BranchStep[src]

impl StrictEncode for BranchStep[src]

impl StructuralEq for BranchStep[src]

impl StructuralPartialEq for BranchStep[src]

impl TryFrom<BranchStep> for UnhardenedIndex[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<BranchStep> for HardenedIndex[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.