pub struct JsBip44Coin { /* private fields */ }
Expand description
Represents a given coin in the BIP32 tree.
@see Bip32
Implementations§
Source§impl JsBip44Coin
impl JsBip44Coin
Sourcepub fn node(&self) -> JsBip32Node
pub fn node(&self) -> JsBip32Node
Returns the underlying {@link Bip32Node}.
Sourcepub fn account(&self, account: i32) -> Result<JsBip44Account, JsValue>
pub fn account(&self, account: i32) -> Result<JsBip44Account, JsValue>
Creates an account in the coin with the given account index.
Sourcepub fn bip32_path(&self) -> String
pub fn bip32_path(&self) -> String
Accessor for the BIP32 path of the coin.
Trait Implementations§
Source§impl Clone for JsBip44Coin
impl Clone for JsBip44Coin
Source§fn clone(&self) -> JsBip44Coin
fn clone(&self) -> JsBip44Coin
Returns a duplicate 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 Debug for JsBip44Coin
impl Debug for JsBip44Coin
Source§impl From<JsBip44Coin> for JsValue
impl From<JsBip44Coin> for JsValue
Source§fn from(value: JsBip44Coin) -> JsValue
fn from(value: JsBip44Coin) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for JsBip44Coin
impl FromWasmAbi for JsBip44Coin
Source§impl IntoWasmAbi for JsBip44Coin
impl IntoWasmAbi for JsBip44Coin
Source§impl LongRefFromWasmAbi for JsBip44Coin
impl LongRefFromWasmAbi for JsBip44Coin
Source§type Anchor = RcRef<JsBip44Coin>
type Anchor = RcRef<JsBip44Coin>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsBip44Coin as LongRefFromWasmAbi>::Abi,
) -> <JsBip44Coin as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsBip44Coin as LongRefFromWasmAbi>::Abi, ) -> <JsBip44Coin as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsBip44Coin
impl OptionFromWasmAbi for JsBip44Coin
Source§fn is_none(abi: &<JsBip44Coin as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsBip44Coin as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.Source§impl OptionIntoWasmAbi for JsBip44Coin
impl OptionIntoWasmAbi for JsBip44Coin
Source§fn none() -> <JsBip44Coin as IntoWasmAbi>::Abi
fn none() -> <JsBip44Coin as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moreSource§impl RefFromWasmAbi for JsBip44Coin
impl RefFromWasmAbi for JsBip44Coin
Source§type Anchor = RcRef<JsBip44Coin>
type Anchor = RcRef<JsBip44Coin>
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§unsafe fn ref_from_abi(
js: <JsBip44Coin as RefFromWasmAbi>::Abi,
) -> <JsBip44Coin as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsBip44Coin as RefFromWasmAbi>::Abi, ) -> <JsBip44Coin as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsBip44Coin
impl RefMutFromWasmAbi for JsBip44Coin
Source§type Anchor = RcRefMut<JsBip44Coin>
type Anchor = RcRefMut<JsBip44Coin>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsBip44Coin as RefMutFromWasmAbi>::Abi,
) -> <JsBip44Coin as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsBip44Coin as RefMutFromWasmAbi>::Abi, ) -> <JsBip44Coin as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsBip44Coin
impl TryFromJsValue for JsBip44Coin
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsBip44Coin, <JsBip44Coin as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsBip44Coin, <JsBip44Coin as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsBip44Coin
impl VectorFromWasmAbi for JsBip44Coin
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsBip44Coin as VectorFromWasmAbi>::Abi, ) -> Box<[JsBip44Coin]>
Source§impl VectorIntoWasmAbi for JsBip44Coin
impl VectorIntoWasmAbi for JsBip44Coin
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsBip44Coin]>, ) -> <JsBip44Coin as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for JsBip44Coin
impl !RefUnwindSafe for JsBip44Coin
impl !Send for JsBip44Coin
impl !Sync for JsBip44Coin
impl Unpin for JsBip44Coin
impl !UnwindSafe for JsBip44Coin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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
.