Enum bitcoin::util::bip32::ChildNumber [−][src]
Expand description
A child number for a derived key
Variants
Normal
Fields
index: u32
Key index, within [0, 2^31 - 1]
Non-hardened key
Hardened
Fields
index: u32
Key index, within [0, 2^31 - 1]
Hardened key
Implementations
Create a Normal
from an index, returns an error if the index is not within
[0, 2^31 - 1].
Create a Hardened
from an index, returns an error if the index is not within
[0, 2^31 - 1].
Returns true
if the child number is a Hardened
value.
Returns the child number that is a single increment from this one.
Trait Implementations
Performs the conversion.
Creates a value from an iterator. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChildNumber
impl Send for ChildNumber
impl Sync for ChildNumber
impl Unpin for ChildNumber
impl UnwindSafe for ChildNumber
Blanket Implementations
Mutably borrows from an owned value. Read more