pub struct JsBip39Phrase { /* private fields */ }
Expand description
An intermediate object that represents a BIP39 phrase with a known language
Implementations§
Trait Implementations§
Source§impl From<Bip39Phrase> for JsBip39Phrase
impl From<Bip39Phrase> for JsBip39Phrase
Source§fn from(inner: Bip39Phrase) -> JsBip39Phrase
fn from(inner: Bip39Phrase) -> JsBip39Phrase
Converts to this type from the input type.
Source§impl From<JsBip39Phrase> for JsValue
impl From<JsBip39Phrase> for JsValue
Source§fn from(value: JsBip39Phrase) -> JsValue
fn from(value: JsBip39Phrase) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for JsBip39Phrase
impl FromWasmAbi for JsBip39Phrase
Source§impl IntoWasmAbi for JsBip39Phrase
impl IntoWasmAbi for JsBip39Phrase
Source§impl LongRefFromWasmAbi for JsBip39Phrase
impl LongRefFromWasmAbi for JsBip39Phrase
Source§type Anchor = RcRef<JsBip39Phrase>
type Anchor = RcRef<JsBip39Phrase>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsBip39Phrase as LongRefFromWasmAbi>::Abi,
) -> <JsBip39Phrase as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsBip39Phrase as LongRefFromWasmAbi>::Abi, ) -> <JsBip39Phrase as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsBip39Phrase
impl OptionFromWasmAbi for JsBip39Phrase
Source§fn is_none(abi: &<JsBip39Phrase as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsBip39Phrase 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 JsBip39Phrase
impl OptionIntoWasmAbi for JsBip39Phrase
Source§fn none() -> <JsBip39Phrase as IntoWasmAbi>::Abi
fn none() -> <JsBip39Phrase 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 JsBip39Phrase
impl RefFromWasmAbi for JsBip39Phrase
Source§type Anchor = RcRef<JsBip39Phrase>
type Anchor = RcRef<JsBip39Phrase>
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: <JsBip39Phrase as RefFromWasmAbi>::Abi,
) -> <JsBip39Phrase as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsBip39Phrase as RefFromWasmAbi>::Abi, ) -> <JsBip39Phrase as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsBip39Phrase
impl RefMutFromWasmAbi for JsBip39Phrase
Source§type Anchor = RcRefMut<JsBip39Phrase>
type Anchor = RcRefMut<JsBip39Phrase>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsBip39Phrase as RefMutFromWasmAbi>::Abi,
) -> <JsBip39Phrase as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsBip39Phrase as RefMutFromWasmAbi>::Abi, ) -> <JsBip39Phrase as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsBip39Phrase
impl TryFromJsValue for JsBip39Phrase
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsBip39Phrase, <JsBip39Phrase as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsBip39Phrase, <JsBip39Phrase as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsBip39Phrase
impl VectorFromWasmAbi for JsBip39Phrase
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsBip39Phrase as VectorFromWasmAbi>::Abi, ) -> Box<[JsBip39Phrase]>
Source§impl VectorIntoWasmAbi for JsBip39Phrase
impl VectorIntoWasmAbi for JsBip39Phrase
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsBip39Phrase]>, ) -> <JsBip39Phrase as VectorIntoWasmAbi>::Abi
Source§impl Wraps<Bip39Phrase> for JsBip39Phrase
impl Wraps<Bip39Phrase> for JsBip39Phrase
Source§fn inner(&self) -> &Bip39Phrase
fn inner(&self) -> &Bip39Phrase
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsBip39Phrase
impl RefUnwindSafe for JsBip39Phrase
impl Send for JsBip39Phrase
impl Sync for JsBip39Phrase
impl Unpin for JsBip39Phrase
impl UnwindSafe for JsBip39Phrase
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> 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
.