pub struct PathComponent {
pub hardened: bool,
pub value: u32,
}Expand description
A single BIP-32 path component (e.g. 84' or 0).
Fields§
§hardened: boolWhether this component is hardened (apostrophe in BIP-32 notation).
value: u32Index value (u31 effective range, encoded as LP4-ext varint).
Implementations§
Trait Implementations§
Source§impl Clone for PathComponent
impl Clone for PathComponent
Source§fn clone(&self) -> PathComponent
fn clone(&self) -> PathComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathComponent
impl Debug for PathComponent
Source§impl PartialEq for PathComponent
impl PartialEq for PathComponent
Source§fn eq(&self, other: &PathComponent) -> bool
fn eq(&self, other: &PathComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PathComponent
impl Eq for PathComponent
impl StructuralPartialEq for PathComponent
Auto Trait Implementations§
impl Freeze for PathComponent
impl RefUnwindSafe for PathComponent
impl Send for PathComponent
impl Sync for PathComponent
impl Unpin for PathComponent
impl UnsafeUnpin for PathComponent
impl UnwindSafe for PathComponent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more