pub struct JsValue { /* private fields */ }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_null_or_undefined(&self) -> bool
pub fn is_null_or_undefined(&self) -> bool
Tests whether this JS value is null or 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 JsValues.
Sourcepub fn loose_eq(&self, other: &JsValue) -> bool
pub fn loose_eq(&self, other: &JsValue) -> bool
Compare two JsValues 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 JsValues.
Sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Applies the binary / JS operator on two JsValues, 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 JsValues.
Sourcepub fn lt(&self, other: &JsValue) -> bool
pub fn lt(&self, other: &JsValue) -> bool
Applies the binary < JS operator on the two JsValues.
Sourcepub fn le(&self, other: &JsValue) -> bool
pub fn le(&self, other: &JsValue) -> bool
Applies the binary <= JS operator on the two JsValues.
Sourcepub fn ge(&self, other: &JsValue) -> bool
pub fn ge(&self, other: &JsValue) -> bool
Applies the binary >= JS operator on the two JsValues.
Sourcepub fn gt(&self, other: &JsValue) -> bool
pub fn gt(&self, other: &JsValue) -> bool
Applies the binary > JS operator on the two JsValues.
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 CharacterData
impl AsRef<JsValue> for CharacterData
Source§impl AsRef<JsValue> for CollatorOptions
impl AsRef<JsValue> for CollatorOptions
Source§impl AsRef<JsValue> for DateTimeFormatOptions
impl AsRef<JsValue> for DateTimeFormatOptions
Source§impl AsRef<JsValue> for DateTimeFormatPart
impl AsRef<JsValue> for DateTimeFormatPart
Source§impl AsRef<JsValue> for DisplayNamesOptions
impl AsRef<JsValue> for DisplayNamesOptions
Source§impl AsRef<JsValue> for DurationFormatOptions
impl AsRef<JsValue> for DurationFormatOptions
Source§impl AsRef<JsValue> for EventTarget
impl AsRef<JsValue> for EventTarget
Source§impl AsRef<JsValue> for HtmlElement
impl AsRef<JsValue> for HtmlElement
Source§impl AsRef<JsValue> for ListFormatOptions
impl AsRef<JsValue> for ListFormatOptions
Source§impl AsRef<JsValue> for NumberFormatOptions
impl AsRef<JsValue> for NumberFormatOptions
Source§impl AsRef<JsValue> for NumberFormatPart
impl AsRef<JsValue> for NumberFormatPart
Source§impl AsRef<JsValue> for PluralRulesOptions
impl AsRef<JsValue> for PluralRulesOptions
Source§impl AsRef<JsValue> for RelativeTimeFormatOptions
impl AsRef<JsValue> for RelativeTimeFormatOptions
Source§impl AsRef<JsValue> for SegmenterOptions
impl AsRef<JsValue> for SegmenterOptions
Source§impl ErasableGeneric for JsValue
impl ErasableGeneric for JsValue
Source§impl From<AggregateError> for JsValue
impl From<AggregateError> for JsValue
Source§fn from(obj: AggregateError) -> JsValue
fn from(obj: AggregateError) -> JsValue
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<ArrayBufferOptions> for JsValue
impl From<ArrayBufferOptions> for JsValue
Source§fn from(obj: ArrayBufferOptions) -> JsValue
fn from(obj: ArrayBufferOptions) -> JsValue
Source§impl<T> From<ArrayTuple<T>> for JsValuewhere
T: JsTuple,
impl<T> From<ArrayTuple<T>> for JsValuewhere
T: JsTuple,
Source§fn from(obj: ArrayTuple<T>) -> JsValue
fn from(obj: ArrayTuple<T>) -> JsValue
Source§impl<T> From<AsyncGenerator<T>> for JsValue
impl<T> From<AsyncGenerator<T>> for JsValue
Source§fn from(obj: AsyncGenerator<T>) -> JsValue
fn from(obj: AsyncGenerator<T>) -> JsValue
Source§impl<T> From<AsyncIterator<T>> for JsValue
impl<T> From<AsyncIterator<T>> for JsValue
Source§fn from(obj: AsyncIterator<T>) -> JsValue
fn from(obj: AsyncIterator<T>) -> 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<CharacterData> for JsValue
impl From<CharacterData> for JsValue
Source§fn from(obj: CharacterData) -> JsValue
fn from(obj: CharacterData) -> JsValue
Source§impl From<CollatorCaseFirst> for JsValue
impl From<CollatorCaseFirst> for JsValue
Source§fn from(val: CollatorCaseFirst) -> JsValue
fn from(val: CollatorCaseFirst) -> JsValue
Source§impl From<CollatorOptions> for JsValue
impl From<CollatorOptions> for JsValue
Source§fn from(obj: CollatorOptions) -> JsValue
fn from(obj: CollatorOptions) -> JsValue
Source§impl From<CollatorSensitivity> for JsValue
impl From<CollatorSensitivity> for JsValue
Source§fn from(val: CollatorSensitivity) -> JsValue
fn from(val: CollatorSensitivity) -> JsValue
Source§impl From<CollatorUsage> for JsValue
impl From<CollatorUsage> for JsValue
Source§fn from(val: CollatorUsage) -> JsValue
fn from(val: CollatorUsage) -> JsValue
Source§impl From<CompactDisplay> for JsValue
impl From<CompactDisplay> for JsValue
Source§fn from(val: CompactDisplay) -> JsValue
fn from(val: CompactDisplay) -> 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<CurrencyDisplay> for JsValue
impl From<CurrencyDisplay> for JsValue
Source§fn from(val: CurrencyDisplay) -> JsValue
fn from(val: CurrencyDisplay) -> JsValue
Source§impl From<CurrencySign> for JsValue
impl From<CurrencySign> for JsValue
Source§fn from(val: CurrencySign) -> JsValue
fn from(val: CurrencySign) -> 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<DateTimeFormatOptions> for JsValue
impl From<DateTimeFormatOptions> for JsValue
Source§fn from(obj: DateTimeFormatOptions) -> JsValue
fn from(obj: DateTimeFormatOptions) -> JsValue
Source§impl From<DateTimeFormatPart> for JsValue
impl From<DateTimeFormatPart> for JsValue
Source§fn from(obj: DateTimeFormatPart) -> JsValue
fn from(obj: DateTimeFormatPart) -> JsValue
Source§impl From<DateTimeFormatPartType> for JsValue
impl From<DateTimeFormatPartType> for JsValue
Source§fn from(val: DateTimeFormatPartType) -> JsValue
fn from(val: DateTimeFormatPartType) -> JsValue
Source§impl From<DateTimeRangeFormatPart> for JsValue
impl From<DateTimeRangeFormatPart> for JsValue
Source§fn from(obj: DateTimeRangeFormatPart) -> JsValue
fn from(obj: DateTimeRangeFormatPart) -> JsValue
Source§impl From<DateTimeStyle> for JsValue
impl From<DateTimeStyle> for JsValue
Source§fn from(val: DateTimeStyle) -> JsValue
fn from(val: DateTimeStyle) -> JsValue
Source§impl From<DayPeriodFormat> for JsValue
impl From<DayPeriodFormat> for JsValue
Source§fn from(val: DayPeriodFormat) -> JsValue
fn from(val: DayPeriodFormat) -> JsValue
Source§impl From<DisplayNames> for JsValue
impl From<DisplayNames> for JsValue
Source§fn from(obj: DisplayNames) -> JsValue
fn from(obj: DisplayNames) -> JsValue
Source§impl From<DisplayNamesFallback> for JsValue
impl From<DisplayNamesFallback> for JsValue
Source§fn from(val: DisplayNamesFallback) -> JsValue
fn from(val: DisplayNamesFallback) -> JsValue
Source§impl From<DisplayNamesLanguageDisplay> for JsValue
impl From<DisplayNamesLanguageDisplay> for JsValue
Source§fn from(val: DisplayNamesLanguageDisplay) -> JsValue
fn from(val: DisplayNamesLanguageDisplay) -> JsValue
Source§impl From<DisplayNamesOptions> for JsValue
impl From<DisplayNamesOptions> for JsValue
Source§fn from(obj: DisplayNamesOptions) -> JsValue
fn from(obj: DisplayNamesOptions) -> JsValue
Source§impl From<DisplayNamesStyle> for JsValue
impl From<DisplayNamesStyle> for JsValue
Source§fn from(val: DisplayNamesStyle) -> JsValue
fn from(val: DisplayNamesStyle) -> JsValue
Source§impl From<DisplayNamesType> for JsValue
impl From<DisplayNamesType> for JsValue
Source§fn from(val: DisplayNamesType) -> JsValue
fn from(val: DisplayNamesType) -> JsValue
Source§impl From<DomTokenList> for JsValue
impl From<DomTokenList> for JsValue
Source§fn from(obj: DomTokenList) -> JsValue
fn from(obj: DomTokenList) -> JsValue
Source§impl From<DurationFormat> for JsValue
impl From<DurationFormat> for JsValue
Source§fn from(obj: DurationFormat) -> JsValue
fn from(obj: DurationFormat) -> JsValue
Source§impl From<DurationFormatOptions> for JsValue
impl From<DurationFormatOptions> for JsValue
Source§fn from(obj: DurationFormatOptions) -> JsValue
fn from(obj: DurationFormatOptions) -> JsValue
Source§impl From<DurationFormatPart> for JsValue
impl From<DurationFormatPart> for JsValue
Source§fn from(obj: DurationFormatPart) -> JsValue
fn from(obj: DurationFormatPart) -> JsValue
Source§impl From<DurationFormatPartType> for JsValue
impl From<DurationFormatPartType> for JsValue
Source§fn from(val: DurationFormatPartType) -> JsValue
fn from(val: DurationFormatPartType) -> JsValue
Source§impl From<DurationFormatStyle> for JsValue
impl From<DurationFormatStyle> for JsValue
Source§fn from(val: DurationFormatStyle) -> JsValue
fn from(val: DurationFormatStyle) -> JsValue
Source§impl From<DurationTimeUnitStyle> for JsValue
impl From<DurationTimeUnitStyle> for JsValue
Source§fn from(val: DurationTimeUnitStyle) -> JsValue
fn from(val: DurationTimeUnitStyle) -> JsValue
Source§impl From<DurationUnitDisplay> for JsValue
impl From<DurationUnitDisplay> for JsValue
Source§fn from(val: DurationUnitDisplay) -> JsValue
fn from(val: DurationUnitDisplay) -> JsValue
Source§impl From<DurationUnitStyle> for JsValue
impl From<DurationUnitStyle> for JsValue
Source§fn from(val: DurationUnitStyle) -> JsValue
fn from(val: DurationUnitStyle) -> JsValue
Source§impl From<ErrorOptions> for JsValue
impl From<ErrorOptions> for JsValue
Source§fn from(obj: ErrorOptions) -> JsValue
fn from(obj: ErrorOptions) -> JsValue
Source§impl From<EventListener> for JsValue
impl From<EventListener> for JsValue
Source§fn from(obj: EventListener) -> JsValue
fn from(obj: EventListener) -> JsValue
Source§impl From<EventTarget> for JsValue
impl From<EventTarget> for JsValue
Source§fn from(obj: EventTarget) -> JsValue
fn from(obj: EventTarget) -> JsValue
Source§impl From<FinalizationRegistry> for JsValue
impl From<FinalizationRegistry> for JsValue
Source§fn from(obj: FinalizationRegistry) -> JsValue
fn from(obj: FinalizationRegistry) -> JsValue
Source§impl From<Float16Array> for JsValue
impl From<Float16Array> for JsValue
Source§fn from(obj: Float16Array) -> JsValue
fn from(obj: Float16Array) -> 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<HtmlCollection> for JsValue
impl From<HtmlCollection> for JsValue
Source§fn from(obj: HtmlCollection) -> JsValue
fn from(obj: HtmlCollection) -> JsValue
Source§impl From<HtmlElement> for JsValue
impl From<HtmlElement> for JsValue
Source§fn from(obj: HtmlElement) -> JsValue
fn from(obj: HtmlElement) -> JsValue
Source§impl From<HtmlInputElement> for JsValue
impl From<HtmlInputElement> for JsValue
Source§fn from(obj: HtmlInputElement) -> JsValue
fn from(obj: HtmlInputElement) -> 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<T> From<IteratorNext<T>> for JsValue
impl<T> From<IteratorNext<T>> for JsValue
Source§fn from(obj: IteratorNext<T>) -> JsValue
fn from(obj: IteratorNext<T>) -> JsValue
Source§impl From<JsValue> for CharacterData
impl From<JsValue> for CharacterData
Source§fn from(obj: JsValue) -> CharacterData
fn from(obj: JsValue) -> CharacterData
Source§impl From<JsValue> for CollatorOptions
impl From<JsValue> for CollatorOptions
Source§fn from(obj: JsValue) -> CollatorOptions
fn from(obj: JsValue) -> CollatorOptions
Source§impl From<JsValue> for DateTimeFormatOptions
impl From<JsValue> for DateTimeFormatOptions
Source§fn from(obj: JsValue) -> DateTimeFormatOptions
fn from(obj: JsValue) -> DateTimeFormatOptions
Source§impl From<JsValue> for DateTimeFormatPart
impl From<JsValue> for DateTimeFormatPart
Source§fn from(obj: JsValue) -> DateTimeFormatPart
fn from(obj: JsValue) -> DateTimeFormatPart
Source§impl From<JsValue> for DisplayNamesOptions
impl From<JsValue> for DisplayNamesOptions
Source§fn from(obj: JsValue) -> DisplayNamesOptions
fn from(obj: JsValue) -> DisplayNamesOptions
Source§impl From<JsValue> for DurationFormatOptions
impl From<JsValue> for DurationFormatOptions
Source§fn from(obj: JsValue) -> DurationFormatOptions
fn from(obj: JsValue) -> DurationFormatOptions
Source§impl From<JsValue> for EventTarget
impl From<JsValue> for EventTarget
Source§fn from(obj: JsValue) -> EventTarget
fn from(obj: JsValue) -> EventTarget
Source§impl From<JsValue> for HtmlElement
impl From<JsValue> for HtmlElement
Source§fn from(obj: JsValue) -> HtmlElement
fn from(obj: JsValue) -> HtmlElement
Source§impl From<JsValue> for ListFormatOptions
impl From<JsValue> for ListFormatOptions
Source§fn from(obj: JsValue) -> ListFormatOptions
fn from(obj: JsValue) -> ListFormatOptions
Source§impl From<JsValue> for NumberFormatOptions
impl From<JsValue> for NumberFormatOptions
Source§fn from(obj: JsValue) -> NumberFormatOptions
fn from(obj: JsValue) -> NumberFormatOptions
Source§impl From<JsValue> for NumberFormatPart
impl From<JsValue> for NumberFormatPart
Source§fn from(obj: JsValue) -> NumberFormatPart
fn from(obj: JsValue) -> NumberFormatPart
Source§impl From<JsValue> for PluralRulesOptions
impl From<JsValue> for PluralRulesOptions
Source§fn from(obj: JsValue) -> PluralRulesOptions
fn from(obj: JsValue) -> PluralRulesOptions
Source§impl From<JsValue> for RelativeTimeFormatOptions
impl From<JsValue> for RelativeTimeFormatOptions
Source§fn from(obj: JsValue) -> RelativeTimeFormatOptions
fn from(obj: JsValue) -> RelativeTimeFormatOptions
Source§impl From<JsValue> for SegmenterOptions
impl From<JsValue> for SegmenterOptions
Source§fn from(obj: JsValue) -> SegmenterOptions
fn from(obj: JsValue) -> SegmenterOptions
Source§impl From<KeyboardEvent> for JsValue
impl From<KeyboardEvent> for JsValue
Source§fn from(obj: KeyboardEvent) -> JsValue
fn from(obj: KeyboardEvent) -> JsValue
Source§impl From<ListFormat> for JsValue
impl From<ListFormat> for JsValue
Source§fn from(obj: ListFormat) -> JsValue
fn from(obj: ListFormat) -> JsValue
Source§impl From<ListFormatOptions> for JsValue
impl From<ListFormatOptions> for JsValue
Source§fn from(obj: ListFormatOptions) -> JsValue
fn from(obj: ListFormatOptions) -> JsValue
Source§impl From<ListFormatPart> for JsValue
impl From<ListFormatPart> for JsValue
Source§fn from(obj: ListFormatPart) -> JsValue
fn from(obj: ListFormatPart) -> JsValue
Source§impl From<ListFormatPartType> for JsValue
impl From<ListFormatPartType> for JsValue
Source§fn from(val: ListFormatPartType) -> JsValue
fn from(val: ListFormatPartType) -> JsValue
Source§impl From<ListFormatStyle> for JsValue
impl From<ListFormatStyle> for JsValue
Source§fn from(val: ListFormatStyle) -> JsValue
fn from(val: ListFormatStyle) -> JsValue
Source§impl From<ListFormatType> for JsValue
impl From<ListFormatType> for JsValue
Source§fn from(val: ListFormatType) -> JsValue
fn from(val: ListFormatType) -> JsValue
Source§impl From<LocaleMatcher> for JsValue
impl From<LocaleMatcher> for JsValue
Source§fn from(val: LocaleMatcher) -> JsValue
fn from(val: LocaleMatcher) -> JsValue
Source§impl From<LocaleMatcherOptions> for JsValue
impl From<LocaleMatcherOptions> for JsValue
Source§fn from(obj: LocaleMatcherOptions) -> JsValue
fn from(obj: LocaleMatcherOptions) -> JsValue
Source§impl From<MonthFormat> for JsValue
impl From<MonthFormat> for JsValue
Source§fn from(val: MonthFormat) -> JsValue
fn from(val: MonthFormat) -> JsValue
Source§impl From<MouseEvent> for JsValue
impl From<MouseEvent> for JsValue
Source§fn from(obj: MouseEvent) -> JsValue
fn from(obj: MouseEvent) -> JsValue
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<NumberFormatNotation> for JsValue
impl From<NumberFormatNotation> for JsValue
Source§fn from(val: NumberFormatNotation) -> JsValue
fn from(val: NumberFormatNotation) -> JsValue
Source§impl From<NumberFormatOptions> for JsValue
impl From<NumberFormatOptions> for JsValue
Source§fn from(obj: NumberFormatOptions) -> JsValue
fn from(obj: NumberFormatOptions) -> JsValue
Source§impl From<NumberFormatPart> for JsValue
impl From<NumberFormatPart> for JsValue
Source§fn from(obj: NumberFormatPart) -> JsValue
fn from(obj: NumberFormatPart) -> JsValue
Source§impl From<NumberFormatPartType> for JsValue
impl From<NumberFormatPartType> for JsValue
Source§fn from(val: NumberFormatPartType) -> JsValue
fn from(val: NumberFormatPartType) -> JsValue
Source§impl From<NumberFormatStyle> for JsValue
impl From<NumberFormatStyle> for JsValue
Source§fn from(val: NumberFormatStyle) -> JsValue
fn from(val: NumberFormatStyle) -> JsValue
Source§impl From<NumberRangeFormatPart> for JsValue
impl From<NumberRangeFormatPart> for JsValue
Source§fn from(obj: NumberRangeFormatPart) -> JsValue
fn from(obj: NumberRangeFormatPart) -> JsValue
Source§impl From<NumericFormat> for JsValue
impl From<NumericFormat> for JsValue
Source§fn from(val: NumericFormat) -> JsValue
fn from(val: NumericFormat) -> JsValue
Source§impl From<PluralCategory> for JsValue
impl From<PluralCategory> for JsValue
Source§fn from(val: PluralCategory) -> JsValue
fn from(val: PluralCategory) -> 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<PluralRulesOptions> for JsValue
impl From<PluralRulesOptions> for JsValue
Source§fn from(obj: PluralRulesOptions) -> JsValue
fn from(obj: PluralRulesOptions) -> JsValue
Source§impl From<PluralRulesType> for JsValue
impl From<PluralRulesType> for JsValue
Source§fn from(val: PluralRulesType) -> JsValue
fn from(val: PluralRulesType) -> JsValue
Source§impl<T> From<PromiseState<T>> for JsValue
impl<T> From<PromiseState<T>> for JsValue
Source§fn from(obj: PromiseState<T>) -> JsValue
fn from(obj: PromiseState<T>) -> JsValue
Source§impl<T> From<PropertyDescriptor<T>> for JsValue
impl<T> From<PropertyDescriptor<T>> for JsValue
Source§fn from(obj: PropertyDescriptor<T>) -> JsValue
fn from(obj: PropertyDescriptor<T>) -> 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<RangeSource> for JsValue
impl From<RangeSource> for JsValue
Source§fn from(val: RangeSource) -> JsValue
fn from(val: RangeSource) -> 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<RegExpMatchArray> for JsValue
impl From<RegExpMatchArray> for JsValue
Source§fn from(obj: RegExpMatchArray) -> JsValue
fn from(obj: RegExpMatchArray) -> 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<RelativeTimeFormatNumeric> for JsValue
impl From<RelativeTimeFormatNumeric> for JsValue
Source§fn from(val: RelativeTimeFormatNumeric) -> JsValue
fn from(val: RelativeTimeFormatNumeric) -> JsValue
Source§impl From<RelativeTimeFormatOptions> for JsValue
impl From<RelativeTimeFormatOptions> for JsValue
Source§fn from(obj: RelativeTimeFormatOptions) -> JsValue
fn from(obj: RelativeTimeFormatOptions) -> JsValue
Source§impl From<RelativeTimeFormatPart> for JsValue
impl From<RelativeTimeFormatPart> for JsValue
Source§fn from(obj: RelativeTimeFormatPart) -> JsValue
fn from(obj: RelativeTimeFormatPart) -> JsValue
Source§impl From<RelativeTimeFormatPartType> for JsValue
impl From<RelativeTimeFormatPartType> for JsValue
Source§fn from(val: RelativeTimeFormatPartType) -> JsValue
fn from(val: RelativeTimeFormatPartType) -> JsValue
Source§impl From<RelativeTimeFormatStyle> for JsValue
impl From<RelativeTimeFormatStyle> for JsValue
Source§fn from(val: RelativeTimeFormatStyle) -> JsValue
fn from(val: RelativeTimeFormatStyle) -> JsValue
Source§impl From<RelativeTimeFormatUnit> for JsValue
impl From<RelativeTimeFormatUnit> for JsValue
Source§fn from(val: RelativeTimeFormatUnit) -> JsValue
fn from(val: RelativeTimeFormatUnit) -> JsValue
Source§impl From<ResolvedCollatorOptions> for JsValue
impl From<ResolvedCollatorOptions> for JsValue
Source§fn from(obj: ResolvedCollatorOptions) -> JsValue
fn from(obj: ResolvedCollatorOptions) -> JsValue
Source§impl From<ResolvedDateTimeFormatOptions> for JsValue
impl From<ResolvedDateTimeFormatOptions> for JsValue
Source§fn from(obj: ResolvedDateTimeFormatOptions) -> JsValue
fn from(obj: ResolvedDateTimeFormatOptions) -> JsValue
Source§impl From<ResolvedDisplayNamesOptions> for JsValue
impl From<ResolvedDisplayNamesOptions> for JsValue
Source§fn from(obj: ResolvedDisplayNamesOptions) -> JsValue
fn from(obj: ResolvedDisplayNamesOptions) -> JsValue
Source§impl From<ResolvedDurationFormatOptions> for JsValue
impl From<ResolvedDurationFormatOptions> for JsValue
Source§fn from(obj: ResolvedDurationFormatOptions) -> JsValue
fn from(obj: ResolvedDurationFormatOptions) -> JsValue
Source§impl From<ResolvedListFormatOptions> for JsValue
impl From<ResolvedListFormatOptions> for JsValue
Source§fn from(obj: ResolvedListFormatOptions) -> JsValue
fn from(obj: ResolvedListFormatOptions) -> JsValue
Source§impl From<ResolvedNumberFormatOptions> for JsValue
impl From<ResolvedNumberFormatOptions> for JsValue
Source§fn from(obj: ResolvedNumberFormatOptions) -> JsValue
fn from(obj: ResolvedNumberFormatOptions) -> JsValue
Source§impl From<ResolvedPluralRulesOptions> for JsValue
impl From<ResolvedPluralRulesOptions> for JsValue
Source§fn from(obj: ResolvedPluralRulesOptions) -> JsValue
fn from(obj: ResolvedPluralRulesOptions) -> JsValue
Source§impl From<ResolvedRelativeTimeFormatOptions> for JsValue
impl From<ResolvedRelativeTimeFormatOptions> for JsValue
Source§fn from(obj: ResolvedRelativeTimeFormatOptions) -> JsValue
fn from(obj: ResolvedRelativeTimeFormatOptions) -> JsValue
Source§impl From<ResolvedSegmenterOptions> for JsValue
impl From<ResolvedSegmenterOptions> for JsValue
Source§fn from(obj: ResolvedSegmenterOptions) -> JsValue
fn from(obj: ResolvedSegmenterOptions) -> JsValue
Source§impl From<RoundingMode> for JsValue
impl From<RoundingMode> for JsValue
Source§fn from(val: RoundingMode) -> JsValue
fn from(val: RoundingMode) -> JsValue
Source§impl From<RoundingPriority> for JsValue
impl From<RoundingPriority> for JsValue
Source§fn from(val: RoundingPriority) -> JsValue
fn from(val: RoundingPriority) -> JsValue
Source§impl From<RuntimeError> for JsValue
impl From<RuntimeError> for JsValue
Source§fn from(obj: RuntimeError) -> JsValue
fn from(obj: RuntimeError) -> JsValue
Source§impl From<SegmentData> for JsValue
impl From<SegmentData> for JsValue
Source§fn from(obj: SegmentData) -> JsValue
fn from(obj: SegmentData) -> JsValue
Source§impl From<SegmenterGranularity> for JsValue
impl From<SegmenterGranularity> for JsValue
Source§fn from(val: SegmenterGranularity) -> JsValue
fn from(val: SegmenterGranularity) -> JsValue
Source§impl From<SegmenterOptions> for JsValue
impl From<SegmenterOptions> for JsValue
Source§fn from(obj: SegmenterOptions) -> JsValue
fn from(obj: SegmenterOptions) -> JsValue
Source§fn from(obj: SharedArrayBuffer) -> JsValue
fn from(obj: SharedArrayBuffer) -> JsValue
Source§impl From<SignDisplay> for JsValue
impl From<SignDisplay> for JsValue
Source§fn from(val: SignDisplay) -> JsValue
fn from(val: SignDisplay) -> JsValue
Source§impl From<SupportedValuesKey> for JsValue
impl From<SupportedValuesKey> for JsValue
Source§fn from(val: SupportedValuesKey) -> JsValue
fn from(val: SupportedValuesKey) -> 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<TimeZoneNameFormat> for JsValue
impl From<TimeZoneNameFormat> for JsValue
Source§fn from(val: TimeZoneNameFormat) -> JsValue
fn from(val: TimeZoneNameFormat) -> JsValue
Source§impl From<TrailingZeroDisplay> for JsValue
impl From<TrailingZeroDisplay> for JsValue
Source§fn from(val: TrailingZeroDisplay) -> JsValue
fn from(val: TrailingZeroDisplay) -> 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 From<UnitDisplay> for JsValue
impl From<UnitDisplay> for JsValue
Source§fn from(val: UnitDisplay) -> JsValue
fn from(val: UnitDisplay) -> JsValue
Source§impl From<UseGrouping> for JsValue
impl From<UseGrouping> for JsValue
Source§fn from(val: UseGrouping) -> JsValue
fn from(val: UseGrouping) -> JsValue
Source§impl From<WeekdayFormat> for JsValue
impl From<WeekdayFormat> for JsValue
Source§fn from(val: WeekdayFormat) -> JsValue
fn from(val: WeekdayFormat) -> JsValue
Source§impl From<YearFormat> for JsValue
impl From<YearFormat> for JsValue
Source§fn from(val: YearFormat) -> JsValue
fn from(val: YearFormat) -> JsValue
Source§impl FromWasmAbi for JsValue
impl FromWasmAbi for JsValue
Source§impl IntoJsGeneric for JsValue
impl IntoJsGeneric 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 OptionFromWasmAbi for JsValue
impl OptionFromWasmAbi for JsValue
Source§impl OptionIntoWasmAbi for &JsValue
impl OptionIntoWasmAbi for &JsValue
Source§impl OptionIntoWasmAbi for JsValue
impl OptionIntoWasmAbi for JsValue
Source§impl<'a> PartialEq<&'a String> for JsValue
impl<'a> PartialEq<&'a String> for JsValue
Source§impl PartialEq for JsValue
impl PartialEq for JsValue
Source§impl Promising for JsValue
impl Promising for JsValue
Source§type Resolution = JsValue
type Resolution = 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
impl Send for JsValue
atomics only.impl Sync for JsValue
atomics only.impl UpcastFrom<()> for JsValue
impl UpcastFrom<AggregateError> for JsValue
impl<T> UpcastFrom<Array<T>> for JsValue
impl UpcastFrom<ArrayBuffer> for JsValue
impl UpcastFrom<ArrayBufferOptions> for JsValue
impl<T> UpcastFrom<ArrayTuple<T>> for JsValuewhere
T: JsTuple,
impl<T> UpcastFrom<AsyncGenerator<T>> for JsValue
impl<T> UpcastFrom<AsyncIterator<T>> for JsValue
impl UpcastFrom<BigInt> for JsValue
impl UpcastFrom<BigInt64Array> for JsValue
impl UpcastFrom<BigUint64Array> for JsValue
impl UpcastFrom<Boolean> for JsValue
impl UpcastFrom<CharacterData> for JsValue
impl UpcastFrom<Collator> for JsValue
impl UpcastFrom<CollatorOptions> for JsValue
impl UpcastFrom<Comment> for JsValue
impl UpcastFrom<CompileError> for JsValue
impl UpcastFrom<ConsoleTask> for JsValue
impl UpcastFrom<DataView> for JsValue
impl UpcastFrom<Date> for JsValue
impl UpcastFrom<DateTimeFormat> for JsValue
impl UpcastFrom<DateTimeFormatOptions> for JsValue
impl UpcastFrom<DateTimeFormatPart> for JsValue
impl UpcastFrom<DateTimeRangeFormatPart> for JsValue
impl UpcastFrom<DisplayNames> for JsValue
impl UpcastFrom<DisplayNamesOptions> for JsValue
impl UpcastFrom<Document> for JsValue
impl UpcastFrom<DomTokenList> for JsValue
impl UpcastFrom<Duration> for JsValue
impl UpcastFrom<DurationFormat> for JsValue
impl UpcastFrom<DurationFormatOptions> for JsValue
impl UpcastFrom<DurationFormatPart> for JsValue
impl UpcastFrom<Element> for JsValue
impl UpcastFrom<Error> for JsValue
impl UpcastFrom<ErrorOptions> for JsValue
impl UpcastFrom<EvalError> for JsValue
impl UpcastFrom<Event> for JsValue
impl UpcastFrom<EventListener> for JsValue
impl UpcastFrom<EventTarget> for JsValue
impl UpcastFrom<Exception> for JsValue
impl UpcastFrom<FinalizationRegistry> for JsValue
impl UpcastFrom<Float16Array> for JsValue
impl UpcastFrom<Float32Array> for JsValue
impl UpcastFrom<Float64Array> for JsValue
impl<T> UpcastFrom<Function<T>> for JsValuewhere
T: JsFunction,
impl<T> UpcastFrom<Generator<T>> for JsValue
impl UpcastFrom<Global> for JsValue
impl UpcastFrom<Global> for JsValue
impl UpcastFrom<Global> for JsValue
impl UpcastFrom<HtmlCollection> for JsValue
impl UpcastFrom<HtmlElement> for JsValue
impl UpcastFrom<HtmlInputElement> for JsValue
impl UpcastFrom<Instance> for JsValue
impl UpcastFrom<Int16Array> for JsValue
impl UpcastFrom<Int32Array> for JsValue
impl UpcastFrom<Int8Array> for JsValue
impl<T> UpcastFrom<Iterator<T>> for JsValue
impl<T> UpcastFrom<IteratorNext<T>> for JsValue
impl UpcastFrom<JsClosure> for JsValue
impl UpcastFrom<JsError> for JsValue
impl<T> UpcastFrom<JsOption<T>> for JsValue
impl UpcastFrom<JsString> for JsValue
impl UpcastFrom<JsValue> for JsValue
impl UpcastFrom<KeyboardEvent> for JsValue
impl UpcastFrom<LinkError> for JsValue
impl UpcastFrom<ListFormat> for JsValue
impl UpcastFrom<ListFormatOptions> for JsValue
impl UpcastFrom<ListFormatPart> for JsValue
impl UpcastFrom<Locale> for JsValue
impl UpcastFrom<LocaleMatcherOptions> for JsValue
impl UpcastFrom<Location> for JsValue
impl<K, V> UpcastFrom<Map<K, V>> for JsValue
impl UpcastFrom<MaybeIterator> for JsValue
impl UpcastFrom<Memory> for JsValue
impl UpcastFrom<Module> for JsValue
impl UpcastFrom<MouseEvent> for JsValue
impl UpcastFrom<Node> for JsValue
impl UpcastFrom<NodeList> for JsValue
impl UpcastFrom<Null> for JsValue
impl UpcastFrom<Number> for JsValue
impl UpcastFrom<NumberFormat> for JsValue
impl UpcastFrom<NumberFormatOptions> for JsValue
impl UpcastFrom<NumberFormatPart> for JsValue
impl UpcastFrom<NumberRangeFormatPart> for JsValue
impl<T> UpcastFrom<Object<T>> for JsValue
impl UpcastFrom<PluralRules> for JsValue
impl UpcastFrom<PluralRulesOptions> for JsValue
impl<T> UpcastFrom<Promise<T>> for JsValue
impl<T> UpcastFrom<PromiseState<T>> for JsValue
impl<T> UpcastFrom<PropertyDescriptor<T>> for JsValue
impl UpcastFrom<Proxy> for JsValue
impl UpcastFrom<RangeError> for JsValue
impl UpcastFrom<ReferenceError> for JsValue
impl UpcastFrom<RegExp> for JsValue
impl UpcastFrom<RegExpMatchArray> for JsValue
impl UpcastFrom<RelativeTimeFormat> for JsValue
impl UpcastFrom<RelativeTimeFormatOptions> for JsValue
impl UpcastFrom<RelativeTimeFormatPart> for JsValue
impl UpcastFrom<ResolvedCollatorOptions> for JsValue
impl UpcastFrom<ResolvedDateTimeFormatOptions> for JsValue
impl UpcastFrom<ResolvedDisplayNamesOptions> for JsValue
impl UpcastFrom<ResolvedDurationFormatOptions> for JsValue
impl UpcastFrom<ResolvedListFormatOptions> for JsValue
impl UpcastFrom<ResolvedNumberFormatOptions> for JsValue
impl UpcastFrom<ResolvedPluralRulesOptions> for JsValue
impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for JsValue
impl UpcastFrom<ResolvedSegmenterOptions> for JsValue
impl UpcastFrom<RuntimeError> for JsValue
impl UpcastFrom<SegmentData> for JsValue
impl UpcastFrom<Segmenter> for JsValue
impl UpcastFrom<SegmenterOptions> for JsValue
impl UpcastFrom<Segments> for JsValue
impl<T> UpcastFrom<Set<T>> for JsValue
impl UpcastFrom<Symbol> for JsValue
impl UpcastFrom<SyntaxError> for JsValue
impl UpcastFrom<Table> for JsValue
impl UpcastFrom<Tag> for JsValue
impl UpcastFrom<Text> for JsValue
impl UpcastFrom<TextInfo> for JsValue
impl UpcastFrom<TypeError> for JsValue
impl UpcastFrom<UiEvent> for JsValue
impl UpcastFrom<Uint16Array> for JsValue
impl UpcastFrom<Uint32Array> for JsValue
impl UpcastFrom<Uint8Array> for JsValue
impl UpcastFrom<Uint8ClampedArray> for JsValue
impl UpcastFrom<Undefined> for JsValue
impl UpcastFrom<UriError> for JsValue
impl<K, V> UpcastFrom<WeakMap<K, V>> for JsValue
impl<T> UpcastFrom<WeakRef<T>> for JsValue
impl<T> UpcastFrom<WeakSet<T>> for JsValue
impl UpcastFrom<WeekInfo> for JsValue
impl UpcastFrom<Window> for JsValue
impl UpcastFrom<bool> for JsValue
impl UpcastFrom<char> for JsValue
impl UpcastFrom<f32> for JsValue
impl UpcastFrom<f64> for JsValue
impl UpcastFrom<i128> for JsValue
impl UpcastFrom<i16> for JsValue
impl UpcastFrom<i32> for JsValue
impl UpcastFrom<i64> for JsValue
impl UpcastFrom<i8> for JsValue
impl UpcastFrom<isize> for JsValue
impl UpcastFrom<u128> for JsValue
impl UpcastFrom<u16> for JsValue
impl UpcastFrom<u32> for JsValue
impl UpcastFrom<u64> for JsValue
impl UpcastFrom<u8> for JsValue
impl UpcastFrom<usize> for JsValue
Auto Trait Implementations§
impl Freeze for JsValue
impl RefUnwindSafe for JsValue
impl Unpin for JsValue
impl UnsafeUnpin for JsValue
impl UnwindSafe for JsValue
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
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
IntoWasmAbi::AbiSource§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.Source§impl<T> TryFromJsValue for Twhere
T: JsCast,
impl<T> TryFromJsValue for Twhere
T: JsCast,
Source§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
Source§impl<T> VectorFromWasmAbi for Twhere
T: ErasableGeneric<Repr = JsValue> + WasmDescribe,
impl<T> VectorFromWasmAbi for Twhere
T: ErasableGeneric<Repr = JsValue> + WasmDescribe,
Source§impl<T> VectorIntoWasmAbi for Twhere
T: ErasableGeneric<Repr = JsValue> + WasmDescribe,
impl<T> VectorIntoWasmAbi for Twhere
T: ErasableGeneric<Repr = JsValue> + WasmDescribe,
Source§impl<T> VectorRefIntoWasmAbi for T
impl<T> VectorRefIntoWasmAbi for T
Source§fn slice_into_abi(slice: &[T]) -> WasmSlice
fn slice_into_abi(slice: &[T]) -> WasmSlice
Some(slice). The returned
WasmSlice is either a borrow of the input slice (primitive
case) or a buffer JS owns and frees (handle-shaped case).Source§fn slice_none() -> WasmSlicewhere
Self: Sized,
fn slice_none() -> WasmSlicewhere
Self: Sized,
None (used by Option<&[T]>). A null
WasmSlice (ptr == 0) is the convention shared with every
other vector-like ABI in the crate.