pub struct JsValue { /* private fields */ }
dep_js_sys
only.Expand description
Representation of an object owned by JS.
A JsValue
doesn’t actually live in Rust right now but actually in a table
owned by the wasm-bindgen
generated JS glue code. Eventually the ownership
will transfer into Wasm directly and this will likely become more efficient,
but for now it may be slightly slow.
Implementations§
Source§impl JsValue
impl JsValue
Sourcepub fn from_str(s: &str) -> JsValue
pub fn from_str(s: &str) -> JsValue
Creates a new JS value which is a string.
The utf-8 string provided is copied to the JS heap and the string will be owned by the JS garbage collector.
Sourcepub fn from_f64(n: f64) -> JsValue
pub fn from_f64(n: f64) -> JsValue
Creates a new JS value which is a number.
This function creates a JS value representing a number (a heap allocated number) and returns a handle to the JS version of it.
Sourcepub fn bigint_from_str(s: &str) -> JsValue
pub fn bigint_from_str(s: &str) -> JsValue
Creates a new JS value which is a bigint from a string representing a number.
This function creates a JS value representing a bigint (a heap allocated large integer) and returns a handle to the JS version of it.
Sourcepub const fn from_bool(b: bool) -> JsValue
pub const fn from_bool(b: bool) -> JsValue
Creates a new JS value which is a boolean.
This function creates a JS object representing a boolean (a heap allocated boolean) and returns a handle to the JS version of it.
Sourcepub fn symbol(description: Option<&str>) -> JsValue
pub fn symbol(description: Option<&str>) -> JsValue
Creates a new JS symbol with the optional description specified.
This function will invoke the Symbol
constructor in JS and return the
JS object corresponding to the symbol created.
Sourcepub fn as_f64(&self) -> Option<f64> ⓘ
pub fn as_f64(&self) -> Option<f64> ⓘ
Returns the f64
value of this JS value if it’s an instance of a
number.
If this JS value is not an instance of a number then this returns
None
.
Sourcepub fn as_string(&self) -> Option<String> ⓘ
pub fn as_string(&self) -> Option<String> ⓘ
If this JS value is a string value, this function copies the JS string
value into Wasm linear memory, encoded as UTF-8, and returns it as a
Rust String
.
To avoid the copying and re-encoding, consider the
JsString::try_from()
function from js-sys
instead.
If this JS value is not an instance of a string or if it’s not valid
utf-8 then this returns None
.
§UTF-16 vs UTF-8
JavaScript strings in general are encoded as UTF-16, but Rust strings
are encoded as UTF-8. This can cause the Rust string to look a bit
different than the JS string sometimes. For more details see the
documentation about the str
type which contains a few
caveats about the encodings.
Sourcepub fn as_bool(&self) -> Option<bool> ⓘ
pub fn as_bool(&self) -> Option<bool> ⓘ
Returns the bool
value of this JS value if it’s an instance of a
boolean.
If this JS value is not an instance of a boolean then this returns
None
.
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Tests whether this JS value is undefined
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Tests whether the type of this JS value is function
.
Sourcepub fn js_in(&self, obj: &JsValue) -> bool
pub fn js_in(&self, obj: &JsValue) -> bool
Applies the binary in
JS operator on the two JsValue
s.
Sourcepub fn loose_eq(&self, other: &JsValue) -> bool
pub fn loose_eq(&self, other: &JsValue) -> bool
Compare two JsValue
s for equality, using the ==
operator in JS.
Sourcepub fn unsigned_shr(&self, rhs: &JsValue) -> u32 ⓘ
pub fn unsigned_shr(&self, rhs: &JsValue) -> u32 ⓘ
Applies the binary >>>
JS operator on the two JsValue
s.
Sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Applies the binary /
JS operator on two JsValue
s, catching and returning any RangeError
thrown.
Sourcepub fn pow(&self, rhs: &JsValue) -> JsValue
pub fn pow(&self, rhs: &JsValue) -> JsValue
Applies the binary **
JS operator on the two JsValue
s.
Sourcepub fn lt(&self, other: &JsValue) -> bool
pub fn lt(&self, other: &JsValue) -> bool
Applies the binary <
JS operator on the two JsValue
s.
Sourcepub fn le(&self, other: &JsValue) -> bool
pub fn le(&self, other: &JsValue) -> bool
Applies the binary <=
JS operator on the two JsValue
s.
Sourcepub fn ge(&self, other: &JsValue) -> bool
pub fn ge(&self, other: &JsValue) -> bool
Applies the binary >=
JS operator on the two JsValue
s.
Sourcepub fn gt(&self, other: &JsValue) -> bool
pub fn gt(&self, other: &JsValue) -> bool
Applies the binary >
JS operator on the two JsValue
s.
Sourcepub fn unchecked_into_f64(&self) -> f64 ⓘ
pub fn unchecked_into_f64(&self) -> f64 ⓘ
Applies the unary +
JS operator on a JsValue
. Can throw.
Trait Implementations§
Source§impl AsRef<JsValue> for ArrayBuffer
impl AsRef<JsValue> for ArrayBuffer
Source§impl AsRef<JsValue> for AsyncIterator
impl AsRef<JsValue> for AsyncIterator
Source§impl AsRef<JsValue> for BigInt64Array
impl AsRef<JsValue> for BigInt64Array
Source§impl AsRef<JsValue> for BigUint64Array
impl AsRef<JsValue> for BigUint64Array
Source§impl AsRef<JsValue> for CompileError
impl AsRef<JsValue> for CompileError
Source§impl AsRef<JsValue> for DateTimeFormat
impl AsRef<JsValue> for DateTimeFormat
Source§impl AsRef<JsValue> for Float32Array
impl AsRef<JsValue> for Float32Array
Source§impl AsRef<JsValue> for Float64Array
impl AsRef<JsValue> for Float64Array
Source§impl AsRef<JsValue> for Int16Array
impl AsRef<JsValue> for Int16Array
Source§impl AsRef<JsValue> for Int32Array
impl AsRef<JsValue> for Int32Array
Source§impl AsRef<JsValue> for IteratorNext
impl AsRef<JsValue> for IteratorNext
Source§impl AsRef<JsValue> for NumberFormat
impl AsRef<JsValue> for NumberFormat
Source§impl AsRef<JsValue> for PluralRules
impl AsRef<JsValue> for PluralRules
Source§impl AsRef<JsValue> for RangeError
impl AsRef<JsValue> for RangeError
Source§impl AsRef<JsValue> for ReferenceError
impl AsRef<JsValue> for ReferenceError
Source§impl AsRef<JsValue> for RelativeTimeFormat
impl AsRef<JsValue> for RelativeTimeFormat
Source§impl AsRef<JsValue> for RuntimeError
impl AsRef<JsValue> for RuntimeError
Source§impl AsRef<JsValue> for SyntaxError
impl AsRef<JsValue> for SyntaxError
Source§impl AsRef<JsValue> for Uint16Array
impl AsRef<JsValue> for Uint16Array
Source§impl AsRef<JsValue> for Uint32Array
impl AsRef<JsValue> for Uint32Array
Source§impl AsRef<JsValue> for Uint8Array
impl AsRef<JsValue> for Uint8Array
Source§impl AsRef<JsValue> for Uint8ClampedArray
impl AsRef<JsValue> for Uint8ClampedArray
Source§impl From<ArrayBuffer> for JsValue
impl From<ArrayBuffer> for JsValue
Source§fn from(obj: ArrayBuffer) -> JsValue
fn from(obj: ArrayBuffer) -> JsValue
Source§impl From<AsyncIterator> for JsValue
impl From<AsyncIterator> for JsValue
Source§fn from(obj: AsyncIterator) -> JsValue
fn from(obj: AsyncIterator) -> JsValue
Source§impl From<BigInt64Array> for JsValue
impl From<BigInt64Array> for JsValue
Source§fn from(obj: BigInt64Array) -> JsValue
fn from(obj: BigInt64Array) -> JsValue
Source§impl From<BigUint64Array> for JsValue
impl From<BigUint64Array> for JsValue
Source§fn from(obj: BigUint64Array) -> JsValue
fn from(obj: BigUint64Array) -> JsValue
Source§impl From<CompileError> for JsValue
impl From<CompileError> for JsValue
Source§fn from(obj: CompileError) -> JsValue
fn from(obj: CompileError) -> JsValue
Source§impl From<DateTimeFormat> for JsValue
impl From<DateTimeFormat> for JsValue
Source§fn from(obj: DateTimeFormat) -> JsValue
fn from(obj: DateTimeFormat) -> JsValue
Source§impl From<Float32Array> for JsValue
impl From<Float32Array> for JsValue
Source§fn from(obj: Float32Array) -> JsValue
fn from(obj: Float32Array) -> JsValue
Source§impl From<Float64Array> for JsValue
impl From<Float64Array> for JsValue
Source§fn from(obj: Float64Array) -> JsValue
fn from(obj: Float64Array) -> JsValue
Source§impl From<Int16Array> for JsValue
impl From<Int16Array> for JsValue
Source§fn from(obj: Int16Array) -> JsValue
fn from(obj: Int16Array) -> JsValue
Source§impl From<Int32Array> for JsValue
impl From<Int32Array> for JsValue
Source§fn from(obj: Int32Array) -> JsValue
fn from(obj: Int32Array) -> JsValue
Source§impl From<IteratorNext> for JsValue
impl From<IteratorNext> for JsValue
Source§fn from(obj: IteratorNext) -> JsValue
fn from(obj: IteratorNext) -> JsValue
Source§impl From<JsValue> for ArrayBuffer
impl From<JsValue> for ArrayBuffer
Source§fn from(obj: JsValue) -> ArrayBuffer
fn from(obj: JsValue) -> ArrayBuffer
Source§impl From<JsValue> for AsyncIterator
impl From<JsValue> for AsyncIterator
Source§fn from(obj: JsValue) -> AsyncIterator
fn from(obj: JsValue) -> AsyncIterator
Source§impl From<JsValue> for BigInt64Array
impl From<JsValue> for BigInt64Array
Source§fn from(obj: JsValue) -> BigInt64Array
fn from(obj: JsValue) -> BigInt64Array
Source§impl From<JsValue> for BigUint64Array
impl From<JsValue> for BigUint64Array
Source§fn from(obj: JsValue) -> BigUint64Array
fn from(obj: JsValue) -> BigUint64Array
Source§impl From<JsValue> for CompileError
impl From<JsValue> for CompileError
Source§fn from(obj: JsValue) -> CompileError
fn from(obj: JsValue) -> CompileError
Source§impl From<JsValue> for DateTimeFormat
impl From<JsValue> for DateTimeFormat
Source§fn from(obj: JsValue) -> DateTimeFormat
fn from(obj: JsValue) -> DateTimeFormat
Source§impl From<JsValue> for Float32Array
impl From<JsValue> for Float32Array
Source§fn from(obj: JsValue) -> Float32Array
fn from(obj: JsValue) -> Float32Array
Source§impl From<JsValue> for Float64Array
impl From<JsValue> for Float64Array
Source§fn from(obj: JsValue) -> Float64Array
fn from(obj: JsValue) -> Float64Array
Source§impl From<JsValue> for Int16Array
impl From<JsValue> for Int16Array
Source§fn from(obj: JsValue) -> Int16Array
fn from(obj: JsValue) -> Int16Array
Source§impl From<JsValue> for Int32Array
impl From<JsValue> for Int32Array
Source§fn from(obj: JsValue) -> Int32Array
fn from(obj: JsValue) -> Int32Array
Source§impl From<JsValue> for IteratorNext
impl From<JsValue> for IteratorNext
Source§fn from(obj: JsValue) -> IteratorNext
fn from(obj: JsValue) -> IteratorNext
Source§impl From<JsValue> for NumberFormat
impl From<JsValue> for NumberFormat
Source§fn from(obj: JsValue) -> NumberFormat
fn from(obj: JsValue) -> NumberFormat
Source§impl From<JsValue> for PluralRules
impl From<JsValue> for PluralRules
Source§fn from(obj: JsValue) -> PluralRules
fn from(obj: JsValue) -> PluralRules
Source§impl From<JsValue> for RangeError
impl From<JsValue> for RangeError
Source§fn from(obj: JsValue) -> RangeError
fn from(obj: JsValue) -> RangeError
Source§impl From<JsValue> for ReferenceError
impl From<JsValue> for ReferenceError
Source§fn from(obj: JsValue) -> ReferenceError
fn from(obj: JsValue) -> ReferenceError
Source§impl From<JsValue> for RelativeTimeFormat
impl From<JsValue> for RelativeTimeFormat
Source§fn from(obj: JsValue) -> RelativeTimeFormat
fn from(obj: JsValue) -> RelativeTimeFormat
Source§impl From<JsValue> for RuntimeError
impl From<JsValue> for RuntimeError
Source§fn from(obj: JsValue) -> RuntimeError
fn from(obj: JsValue) -> RuntimeError
Source§fn from(obj: JsValue) -> SharedArrayBuffer
fn from(obj: JsValue) -> SharedArrayBuffer
Source§impl From<JsValue> for SyntaxError
impl From<JsValue> for SyntaxError
Source§fn from(obj: JsValue) -> SyntaxError
fn from(obj: JsValue) -> SyntaxError
Source§impl From<JsValue> for Uint16Array
impl From<JsValue> for Uint16Array
Source§fn from(obj: JsValue) -> Uint16Array
fn from(obj: JsValue) -> Uint16Array
Source§impl From<JsValue> for Uint32Array
impl From<JsValue> for Uint32Array
Source§fn from(obj: JsValue) -> Uint32Array
fn from(obj: JsValue) -> Uint32Array
Source§impl From<JsValue> for Uint8Array
impl From<JsValue> for Uint8Array
Source§fn from(obj: JsValue) -> Uint8Array
fn from(obj: JsValue) -> Uint8Array
Source§impl From<JsValue> for Uint8ClampedArray
impl From<JsValue> for Uint8ClampedArray
Source§fn from(obj: JsValue) -> Uint8ClampedArray
fn from(obj: JsValue) -> Uint8ClampedArray
Source§impl From<NumberFormat> for JsValue
impl From<NumberFormat> for JsValue
Source§fn from(obj: NumberFormat) -> JsValue
fn from(obj: NumberFormat) -> JsValue
Source§impl From<PluralRules> for JsValue
impl From<PluralRules> for JsValue
Source§fn from(obj: PluralRules) -> JsValue
fn from(obj: PluralRules) -> JsValue
Source§impl From<RangeError> for JsValue
impl From<RangeError> for JsValue
Source§fn from(obj: RangeError) -> JsValue
fn from(obj: RangeError) -> JsValue
Source§impl From<ReferenceError> for JsValue
impl From<ReferenceError> for JsValue
Source§fn from(obj: ReferenceError) -> JsValue
fn from(obj: ReferenceError) -> JsValue
Source§impl From<RelativeTimeFormat> for JsValue
impl From<RelativeTimeFormat> for JsValue
Source§fn from(obj: RelativeTimeFormat) -> JsValue
fn from(obj: RelativeTimeFormat) -> JsValue
Source§impl From<RuntimeError> for JsValue
impl From<RuntimeError> for JsValue
Source§fn from(obj: RuntimeError) -> JsValue
fn from(obj: RuntimeError) -> JsValue
Source§fn from(obj: SharedArrayBuffer) -> JsValue
fn from(obj: SharedArrayBuffer) -> JsValue
Source§impl From<SyntaxError> for JsValue
impl From<SyntaxError> for JsValue
Source§fn from(obj: SyntaxError) -> JsValue
fn from(obj: SyntaxError) -> JsValue
Source§impl From<Uint16Array> for JsValue
impl From<Uint16Array> for JsValue
Source§fn from(obj: Uint16Array) -> JsValue
fn from(obj: Uint16Array) -> JsValue
Source§impl From<Uint32Array> for JsValue
impl From<Uint32Array> for JsValue
Source§fn from(obj: Uint32Array) -> JsValue
fn from(obj: Uint32Array) -> JsValue
Source§impl From<Uint8Array> for JsValue
impl From<Uint8Array> for JsValue
Source§fn from(obj: Uint8Array) -> JsValue
fn from(obj: Uint8Array) -> JsValue
Source§impl From<Uint8ClampedArray> for JsValue
impl From<Uint8ClampedArray> for JsValue
Source§fn from(obj: Uint8ClampedArray) -> JsValue
fn from(obj: Uint8ClampedArray) -> JsValue
Source§impl FromWasmAbi for JsValue
impl FromWasmAbi for JsValue
Source§impl IntoWasmAbi for &JsValue
impl IntoWasmAbi for &JsValue
Source§impl IntoWasmAbi for JsValue
impl IntoWasmAbi for JsValue
Source§impl JsCast for JsValue
impl JsCast for JsValue
Source§fn instanceof(_val: &JsValue) -> bool
fn instanceof(_val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> JsValue
fn unchecked_from_js(val: JsValue) -> JsValue
Source§fn unchecked_from_js_ref(val: &JsValue) -> &JsValue
fn unchecked_from_js_ref(val: &JsValue) -> &JsValue
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
T
. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self> ⓘwhere
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self> ⓘwhere
T: JsCast,
T
. Read moreSource§fn dyn_ref<T>(&self) -> Option<&T> ⓘwhere
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T> ⓘwhere
T: JsCast,
T
. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Source§impl LongRefFromWasmAbi for JsValue
impl LongRefFromWasmAbi for JsValue
Source§impl PartialEq for JsValue
impl PartialEq for JsValue
Source§impl RefFromWasmAbi for JsValue
impl RefFromWasmAbi for JsValue
Source§type Anchor = ManuallyDrop<JsValue>
type Anchor = ManuallyDrop<JsValue>
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: u32) -> <JsValue as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi(js: u32) -> <JsValue as RefFromWasmAbi>::Anchor
Source§impl TryFrom<&JsValue> for f64
impl TryFrom<&JsValue> for f64
Source§impl VectorFromWasmAbi for JsValue
impl VectorFromWasmAbi for JsValue
Auto Trait Implementations§
impl Freeze for JsValue
impl RefUnwindSafe for JsValue
impl !Send for JsValue
impl !Sync for JsValue
impl Unpin for JsValue
impl UnwindSafe for JsValue
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Source§fn byte_align(&self) -> usize ⓘ
fn byte_align(&self) -> usize ⓘ
Source§fn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Source§impl<T, R> Chain<R> for Twhere
T: ?Sized,
impl<T, R> Chain<R> for Twhere
T: ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ExtAny for T
impl<T> ExtAny for T
Source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Source§impl<T> ExtMem for Twhere
T: ?Sized,
impl<T> ExtMem for Twhere
T: ?Sized,
Source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Source§fn mem_align_of_val(&self) -> usize ⓘ
fn mem_align_of_val(&self) -> usize ⓘ
Source§fn mem_size_of_val(&self) -> usize ⓘ
fn mem_size_of_val(&self) -> usize ⓘ
Source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true
if dropping values of this type matters. Read moreSource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self
without running its destructor. Read moreSource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Source§unsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout
only.T
represented by the all-zero byte-pattern. Read moreSource§unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout
only.T
represented by the all-zero byte-pattern. Read moreSource§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
unsafe_slice
only.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Hook for T
impl<T> Hook for T
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError> ⓘ
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError> ⓘ
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out
indicating that a T
is niched.§impl<T> Pointable for T
impl<T> Pointable for T
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
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.