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