Struct kaspa_bip32::wasm::derivation_path::DerivationPath
source · pub struct DerivationPath { /* private fields */ }
Implementations§
source§impl DerivationPath
impl DerivationPath
pub fn new(path: &str) -> Result<DerivationPath>
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Get the count of ChildNumber
values in this derivation path.
sourcepub fn parent(&self) -> Option<DerivationPath>
pub fn parent(&self) -> Option<DerivationPath>
Get the parent DerivationPath
for the current one.
Returns Undefined
if this is already the root path.
sourcepub fn push(&mut self, child_number: u32, hardened: Option<bool>) -> Result<()>
pub fn push(&mut self, child_number: u32, hardened: Option<bool>) -> Result<()>
Push a ChildNumber
onto an existing derivation path.
pub fn to_str(&self) -> String
Trait Implementations§
source§impl Clone for DerivationPath
impl Clone for DerivationPath
source§fn clone(&self) -> DerivationPath
fn clone(&self) -> DerivationPath
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<DerivationPath> for DerivationPath
impl From<DerivationPath> for DerivationPath
source§fn from(value: DerivationPath) -> Self
fn from(value: DerivationPath) -> Self
Converts to this type from the input type.
source§impl From<DerivationPath> for JsValue
impl From<DerivationPath> for JsValue
source§fn from(value: DerivationPath) -> Self
fn from(value: DerivationPath) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for DerivationPath
impl FromWasmAbi for DerivationPath
source§impl IntoWasmAbi for DerivationPath
impl IntoWasmAbi for DerivationPath
source§impl LongRefFromWasmAbi for DerivationPath
impl LongRefFromWasmAbi for DerivationPath
source§impl OptionFromWasmAbi for DerivationPath
impl OptionFromWasmAbi for DerivationPath
source§impl OptionIntoWasmAbi for DerivationPath
impl OptionIntoWasmAbi for DerivationPath
source§impl RefFromWasmAbi for DerivationPath
impl RefFromWasmAbi for DerivationPath
§type Anchor = Ref<'static, DerivationPath>
type Anchor = Ref<'static, DerivationPath>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for DerivationPath
impl RefMutFromWasmAbi for DerivationPath
source§impl TryFrom<JsValue> for DerivationPath
impl TryFrom<JsValue> for DerivationPath
Auto Trait Implementations§
impl RefUnwindSafe for DerivationPath
impl Send for DerivationPath
impl Sync for DerivationPath
impl Unpin for DerivationPath
impl UnwindSafe for DerivationPath
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.