pub struct ArrayTuple<T = (JsValue,)>where
T: JsTuple,{ /* private fields */ }Implementations§
Source§impl ArrayTuple
impl ArrayTuple
Sourcepub fn new1<T1>(t1: &T1) -> ArrayTuple<(T1,)>
pub fn new1<T1>(t1: &T1) -> ArrayTuple<(T1,)>
Creates a new JS array typed as a 1-tuple.
Source§impl ArrayTuple
impl ArrayTuple
Sourcepub fn new2<T1, T2>(t1: &T1, t2: &T2) -> ArrayTuple<(T1, T2)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue)>>,
pub fn new2<T1, T2>(t1: &T1, t2: &T2) -> ArrayTuple<(T1, T2)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue)>>,
Creates a new JS array typed as a 2-tuple.
Source§impl ArrayTuple
impl ArrayTuple
Sourcepub fn new3<T1, T2, T3>(t1: &T1, t2: &T2, t3: &T3) -> ArrayTuple<(T1, T2, T3)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue)>>,
pub fn new3<T1, T2, T3>(t1: &T1, t2: &T2, t3: &T3) -> ArrayTuple<(T1, T2, T3)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue)>>,
Creates a new JS array typed as a 3-tuple.
Source§impl ArrayTuple
impl ArrayTuple
Sourcepub fn new4<T1, T2, T3, T4>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
) -> ArrayTuple<(T1, T2, T3, T4)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue)>>,
pub fn new4<T1, T2, T3, T4>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
) -> ArrayTuple<(T1, T2, T3, T4)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue)>>,
Creates a new JS array typed as a 4-tuple.
Source§impl ArrayTuple
impl ArrayTuple
Sourcepub fn new5<T1, T2, T3, T4, T5>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
t5: &T5,
) -> ArrayTuple<(T1, T2, T3, T4, T5)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
T5: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4, T5)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue, JsValue)>>,
pub fn new5<T1, T2, T3, T4, T5>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
t5: &T5,
) -> ArrayTuple<(T1, T2, T3, T4, T5)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
T5: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4, T5)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue, JsValue)>>,
Creates a new JS array typed as a 5-tuple.
Source§impl ArrayTuple
impl ArrayTuple
Sourcepub fn new6<T1, T2, T3, T4, T5, T6>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
t5: &T5,
t6: &T6,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
T5: ErasableGenericBorrow<JsValue>,
T6: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4, T5, T6)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue, JsValue, JsValue)>>,
pub fn new6<T1, T2, T3, T4, T5, T6>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
t5: &T5,
t6: &T6,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
T5: ErasableGenericBorrow<JsValue>,
T6: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4, T5, T6)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue, JsValue, JsValue)>>,
Creates a new JS array typed as a 6-tuple.
Source§impl ArrayTuple
impl ArrayTuple
Sourcepub fn new7<T1, T2, T3, T4, T5, T6, T7>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
t5: &T5,
t6: &T6,
t7: &T7,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
T5: ErasableGenericBorrow<JsValue>,
T6: ErasableGenericBorrow<JsValue>,
T7: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue, JsValue, JsValue, JsValue)>>,
pub fn new7<T1, T2, T3, T4, T5, T6, T7>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
t5: &T5,
t6: &T6,
t7: &T7,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
T5: ErasableGenericBorrow<JsValue>,
T6: ErasableGenericBorrow<JsValue>,
T7: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue, JsValue, JsValue, JsValue)>>,
Creates a new JS array typed as a 7-tuple.
Source§impl ArrayTuple
impl ArrayTuple
Sourcepub fn new8<T1, T2, T3, T4, T5, T6, T7, T8>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
t5: &T5,
t6: &T6,
t7: &T7,
t8: &T8,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
T5: ErasableGenericBorrow<JsValue>,
T6: ErasableGenericBorrow<JsValue>,
T7: ErasableGenericBorrow<JsValue>,
T8: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue, JsValue, JsValue, JsValue, JsValue)>>,
pub fn new8<T1, T2, T3, T4, T5, T6, T7, T8>(
t1: &T1,
t2: &T2,
t3: &T3,
t4: &T4,
t5: &T5,
t6: &T6,
t7: &T7,
t8: &T8,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>where
T1: ErasableGenericBorrow<JsValue>,
T2: ErasableGenericBorrow<JsValue>,
T3: ErasableGenericBorrow<JsValue>,
T4: ErasableGenericBorrow<JsValue>,
T5: ErasableGenericBorrow<JsValue>,
T6: ErasableGenericBorrow<JsValue>,
T7: ErasableGenericBorrow<JsValue>,
T8: ErasableGenericBorrow<JsValue>,
ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>: ErasableGenericOwn<ArrayTuple<(JsValue, JsValue, JsValue, JsValue, JsValue, JsValue, JsValue, JsValue)>>,
Creates a new JS array typed as a 8-tuple.
Source§impl<T> ArrayTuple<T>where
T: JsTuple1,
impl<T> ArrayTuple<T>where
T: JsTuple1,
Source§impl<T> ArrayTuple<T>where
T: JsTuple2,
impl<T> ArrayTuple<T>where
T: JsTuple2,
Source§impl<T> ArrayTuple<T>where
T: JsTuple3,
impl<T> ArrayTuple<T>where
T: JsTuple3,
Source§impl<T> ArrayTuple<T>where
T: JsTuple4,
impl<T> ArrayTuple<T>where
T: JsTuple4,
Source§impl<T> ArrayTuple<T>where
T: JsTuple5,
impl<T> ArrayTuple<T>where
T: JsTuple5,
Source§impl<T> ArrayTuple<T>where
T: JsTuple6,
impl<T> ArrayTuple<T>where
T: JsTuple6,
Source§impl<T> ArrayTuple<T>where
T: JsTuple7,
impl<T> ArrayTuple<T>where
T: JsTuple7,
Source§impl<T> ArrayTuple<T>where
T: JsTuple8,
impl<T> ArrayTuple<T>where
T: JsTuple8,
Source§impl<T> ArrayTuple<T>where
T: JsTuple1,
impl<T> ArrayTuple<T>where
T: JsTuple1,
Source§impl<T> ArrayTuple<T>where
T: JsTuple2,
impl<T> ArrayTuple<T>where
T: JsTuple2,
Source§impl<T> ArrayTuple<T>where
T: JsTuple3,
impl<T> ArrayTuple<T>where
T: JsTuple3,
Source§impl<T> ArrayTuple<T>where
T: JsTuple4,
impl<T> ArrayTuple<T>where
T: JsTuple4,
Source§impl<T> ArrayTuple<T>where
T: JsTuple5,
impl<T> ArrayTuple<T>where
T: JsTuple5,
Source§impl<T> ArrayTuple<T>where
T: JsTuple6,
impl<T> ArrayTuple<T>where
T: JsTuple6,
Source§impl<T> ArrayTuple<T>where
T: JsTuple7,
impl<T> ArrayTuple<T>where
T: JsTuple7,
Source§impl<T> ArrayTuple<T>where
T: JsTuple8,
impl<T> ArrayTuple<T>where
T: JsTuple8,
Source§impl<T> ArrayTuple<T>where
T: JsTuple,
impl<T> ArrayTuple<T>where
T: JsTuple,
Source§impl<T1> ArrayTuple<(T1,)>where
T1: JsGeneric,
impl<T1> ArrayTuple<(T1,)>where
T1: JsGeneric,
Sourcepub fn into_tuple(self) -> (T1,)
pub fn into_tuple(self) -> (T1,)
Convert the ArrayTuple into its corresponding Rust tuple.
Sourcepub fn into_parts(self) -> (T1,)
👎Deprecated: renamed to into_tuple
pub fn into_parts(self) -> (T1,)
renamed to into_tuple
Deprecated alias for ArrayTuple::into_tuple.
Sourcepub fn new(get0: &T1) -> ArrayTuple<(T1,)>
pub fn new(get0: &T1) -> ArrayTuple<(T1,)>
Create a new ArrayTuple from the corresponding parts.
§Example
use js_sys::{ArrayTuple, JsString};
let tuple = ArrayTuple::<JsString, JsString>::new(&"a".into(), &"b".into());Note: You must specify the T using ::<...> syntax on ArrayTuple.
Alternatively, use new1, new2, etc. for type inference from the left-hand side.
Source§impl<T1, T2> ArrayTuple<(T1, T2)>
impl<T1, T2> ArrayTuple<(T1, T2)>
Sourcepub fn into_tuple(self) -> (T1, T2)
pub fn into_tuple(self) -> (T1, T2)
Convert the ArrayTuple into its corresponding Rust tuple.
Sourcepub fn into_parts(self) -> (T1, T2)
👎Deprecated: renamed to into_tuple
pub fn into_parts(self) -> (T1, T2)
renamed to into_tuple
Deprecated alias for ArrayTuple::into_tuple.
Sourcepub fn new(get0: &T1, get1: &T2) -> ArrayTuple<(T1, T2)>
pub fn new(get0: &T1, get1: &T2) -> ArrayTuple<(T1, T2)>
Create a new ArrayTuple from the corresponding parts.
§Example
use js_sys::{ArrayTuple, JsString};
let tuple = ArrayTuple::<JsString, JsString>::new(&"a".into(), &"b".into());Note: You must specify the T using ::<...> syntax on ArrayTuple.
Alternatively, use new1, new2, etc. for type inference from the left-hand side.
Source§impl<T1, T2, T3> ArrayTuple<(T1, T2, T3)>
impl<T1, T2, T3> ArrayTuple<(T1, T2, T3)>
Sourcepub fn into_tuple(self) -> (T1, T2, T3)
pub fn into_tuple(self) -> (T1, T2, T3)
Convert the ArrayTuple into its corresponding Rust tuple.
Sourcepub fn into_parts(self) -> (T1, T2, T3)
👎Deprecated: renamed to into_tuple
pub fn into_parts(self) -> (T1, T2, T3)
renamed to into_tuple
Deprecated alias for ArrayTuple::into_tuple.
Sourcepub fn new(get0: &T1, get1: &T2, get2: &T3) -> ArrayTuple<(T1, T2, T3)>
pub fn new(get0: &T1, get1: &T2, get2: &T3) -> ArrayTuple<(T1, T2, T3)>
Create a new ArrayTuple from the corresponding parts.
§Example
use js_sys::{ArrayTuple, JsString};
let tuple = ArrayTuple::<JsString, JsString>::new(&"a".into(), &"b".into());Note: You must specify the T using ::<...> syntax on ArrayTuple.
Alternatively, use new1, new2, etc. for type inference from the left-hand side.
Source§impl<T1, T2, T3, T4> ArrayTuple<(T1, T2, T3, T4)>
impl<T1, T2, T3, T4> ArrayTuple<(T1, T2, T3, T4)>
Sourcepub fn into_tuple(self) -> (T1, T2, T3, T4)
pub fn into_tuple(self) -> (T1, T2, T3, T4)
Convert the ArrayTuple into its corresponding Rust tuple.
Sourcepub fn into_parts(self) -> (T1, T2, T3, T4)
👎Deprecated: renamed to into_tuple
pub fn into_parts(self) -> (T1, T2, T3, T4)
renamed to into_tuple
Deprecated alias for ArrayTuple::into_tuple.
Sourcepub fn new(
get0: &T1,
get1: &T2,
get2: &T3,
get3: &T4,
) -> ArrayTuple<(T1, T2, T3, T4)>
pub fn new( get0: &T1, get1: &T2, get2: &T3, get3: &T4, ) -> ArrayTuple<(T1, T2, T3, T4)>
Create a new ArrayTuple from the corresponding parts.
§Example
use js_sys::{ArrayTuple, JsString};
let tuple = ArrayTuple::<JsString, JsString>::new(&"a".into(), &"b".into());Note: You must specify the T using ::<...> syntax on ArrayTuple.
Alternatively, use new1, new2, etc. for type inference from the left-hand side.
Source§impl<T1, T2, T3, T4, T5> ArrayTuple<(T1, T2, T3, T4, T5)>
impl<T1, T2, T3, T4, T5> ArrayTuple<(T1, T2, T3, T4, T5)>
Sourcepub fn into_tuple(self) -> (T1, T2, T3, T4, T5)
pub fn into_tuple(self) -> (T1, T2, T3, T4, T5)
Convert the ArrayTuple into its corresponding Rust tuple.
Sourcepub fn into_parts(self) -> (T1, T2, T3, T4, T5)
👎Deprecated: renamed to into_tuple
pub fn into_parts(self) -> (T1, T2, T3, T4, T5)
renamed to into_tuple
Deprecated alias for ArrayTuple::into_tuple.
Sourcepub fn new(
get0: &T1,
get1: &T2,
get2: &T3,
get3: &T4,
get4: &T5,
) -> ArrayTuple<(T1, T2, T3, T4, T5)>
pub fn new( get0: &T1, get1: &T2, get2: &T3, get3: &T4, get4: &T5, ) -> ArrayTuple<(T1, T2, T3, T4, T5)>
Create a new ArrayTuple from the corresponding parts.
§Example
use js_sys::{ArrayTuple, JsString};
let tuple = ArrayTuple::<JsString, JsString>::new(&"a".into(), &"b".into());Note: You must specify the T using ::<...> syntax on ArrayTuple.
Alternatively, use new1, new2, etc. for type inference from the left-hand side.
Source§impl<T1, T2, T3, T4, T5, T6> ArrayTuple<(T1, T2, T3, T4, T5, T6)>
impl<T1, T2, T3, T4, T5, T6> ArrayTuple<(T1, T2, T3, T4, T5, T6)>
Sourcepub fn into_tuple(self) -> (T1, T2, T3, T4, T5, T6)
pub fn into_tuple(self) -> (T1, T2, T3, T4, T5, T6)
Convert the ArrayTuple into its corresponding Rust tuple.
Sourcepub fn into_parts(self) -> (T1, T2, T3, T4, T5, T6)
👎Deprecated: renamed to into_tuple
pub fn into_parts(self) -> (T1, T2, T3, T4, T5, T6)
renamed to into_tuple
Deprecated alias for ArrayTuple::into_tuple.
Sourcepub fn new(
get0: &T1,
get1: &T2,
get2: &T3,
get3: &T4,
get4: &T5,
get5: &T6,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6)>
pub fn new( get0: &T1, get1: &T2, get2: &T3, get3: &T4, get4: &T5, get5: &T6, ) -> ArrayTuple<(T1, T2, T3, T4, T5, T6)>
Create a new ArrayTuple from the corresponding parts.
§Example
use js_sys::{ArrayTuple, JsString};
let tuple = ArrayTuple::<JsString, JsString>::new(&"a".into(), &"b".into());Note: You must specify the T using ::<...> syntax on ArrayTuple.
Alternatively, use new1, new2, etc. for type inference from the left-hand side.
Source§impl<T1, T2, T3, T4, T5, T6, T7> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
impl<T1, T2, T3, T4, T5, T6, T7> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
Sourcepub fn into_tuple(self) -> (T1, T2, T3, T4, T5, T6, T7)
pub fn into_tuple(self) -> (T1, T2, T3, T4, T5, T6, T7)
Convert the ArrayTuple into its corresponding Rust tuple.
Sourcepub fn into_parts(self) -> (T1, T2, T3, T4, T5, T6, T7)
👎Deprecated: renamed to into_tuple
pub fn into_parts(self) -> (T1, T2, T3, T4, T5, T6, T7)
renamed to into_tuple
Deprecated alias for ArrayTuple::into_tuple.
Sourcepub fn new(
get0: &T1,
get1: &T2,
get2: &T3,
get3: &T4,
get4: &T5,
get5: &T6,
get6: &T7,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
pub fn new( get0: &T1, get1: &T2, get2: &T3, get3: &T4, get4: &T5, get5: &T6, get6: &T7, ) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
Create a new ArrayTuple from the corresponding parts.
§Example
use js_sys::{ArrayTuple, JsString};
let tuple = ArrayTuple::<JsString, JsString>::new(&"a".into(), &"b".into());Note: You must specify the T using ::<...> syntax on ArrayTuple.
Alternatively, use new1, new2, etc. for type inference from the left-hand side.
Source§impl<T1, T2, T3, T4, T5, T6, T7, T8> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
impl<T1, T2, T3, T4, T5, T6, T7, T8> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
Sourcepub fn into_tuple(self) -> (T1, T2, T3, T4, T5, T6, T7, T8)
pub fn into_tuple(self) -> (T1, T2, T3, T4, T5, T6, T7, T8)
Convert the ArrayTuple into its corresponding Rust tuple.
Sourcepub fn into_parts(self) -> (T1, T2, T3, T4, T5, T6, T7, T8)
👎Deprecated: renamed to into_tuple
pub fn into_parts(self) -> (T1, T2, T3, T4, T5, T6, T7, T8)
renamed to into_tuple
Deprecated alias for ArrayTuple::into_tuple.
Sourcepub fn new(
get0: &T1,
get1: &T2,
get2: &T3,
get3: &T4,
get4: &T5,
get5: &T6,
get6: &T7,
get7: &T8,
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
pub fn new( get0: &T1, get1: &T2, get2: &T3, get3: &T4, get4: &T5, get5: &T6, get6: &T7, get7: &T8, ) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
Create a new ArrayTuple from the corresponding parts.
§Example
use js_sys::{ArrayTuple, JsString};
let tuple = ArrayTuple::<JsString, JsString>::new(&"a".into(), &"b".into());Note: You must specify the T using ::<...> syntax on ArrayTuple.
Alternatively, use new1, new2, etc. for type inference from the left-hand side.
Methods from Deref<Target = Object>§
Sourcepub fn constructor(&self) -> Function
pub fn constructor(&self) -> Function
The constructor property returns a reference to the Object constructor
function that created the instance object.
Sourcepub fn has_own_property(&self, property: &JsValue) -> bool
👎Deprecated: Use Object::hasOwn instead.
pub fn has_own_property(&self, property: &JsValue) -> bool
Use Object::hasOwn instead.
The hasOwnProperty() method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
Sourcepub fn is_prototype_of(&self, value: &JsValue) -> bool
pub fn is_prototype_of(&self, value: &JsValue) -> bool
The isPrototypeOf() method checks if an object exists in another
object’s prototype chain.
Sourcepub fn property_is_enumerable(&self, property: &JsValue) -> bool
pub fn property_is_enumerable(&self, property: &JsValue) -> bool
The propertyIsEnumerable() method returns a Boolean indicating
whether the specified property is enumerable.
Sourcepub fn to_locale_string(&self) -> JsString
pub fn to_locale_string(&self) -> JsString
The toLocaleString() method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
Sourcepub fn to_string(&self) -> JsString
pub fn to_string(&self) -> JsString
The toString() method returns a string representing the object.
Sourcepub fn to_js_string(&self) -> JsString
pub fn to_js_string(&self) -> JsString
The toString() method returns a string representing the object.
Methods from Deref<Target = JsValue>§
pub const NULL: JsValue
pub const UNDEFINED: JsValue
pub const TRUE: JsValue
pub const FALSE: JsValue
Sourcepub fn into_serde<T>(&self) -> Result<T, Error>where
T: for<'a> Deserialize<'a>,
👎Deprecated: causes dependency cycles, use serde-wasm-bindgen or gloo_utils::format::JsValueSerdeExt instead
pub fn into_serde<T>(&self) -> Result<T, Error>where
T: for<'a> Deserialize<'a>,
causes dependency cycles, use serde-wasm-bindgen or gloo_utils::format::JsValueSerdeExt instead
Invokes JSON.stringify on this value and then parses the resulting
JSON into an arbitrary Rust value.
This function is deprecated, due to creating a dependency cycle in
some circumstances. Use serde-wasm-bindgen or
gloo_utils::format::JsValueSerdeExt instead.
This function will first call JSON.stringify on the JsValue itself.
The resulting string is then passed into Rust which then parses it as
JSON into the resulting value.
Usage of this API requires activating the serde-serialize feature of
the wasm-bindgen crate.
§Errors
Returns any error encountered when parsing the JSON into a T.
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<T> AsRef<ArrayTuple<T>> for ArrayTuple<T>where
T: JsTuple,
impl<T> AsRef<ArrayTuple<T>> for ArrayTuple<T>where
T: JsTuple,
Source§fn as_ref(&self) -> &ArrayTuple<T>
fn as_ref(&self) -> &ArrayTuple<T>
Source§impl<T> Clone for ArrayTuple<T>
impl<T> Clone for ArrayTuple<T>
Source§fn clone(&self) -> ArrayTuple<T>
fn clone(&self) -> ArrayTuple<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T> Debug for ArrayTuple<T>
impl<T> Debug for ArrayTuple<T>
Source§impl<T1> Default for ArrayTuple<(T1,)>
impl<T1> Default for ArrayTuple<(T1,)>
Source§impl<T1, T2> Default for ArrayTuple<(T1, T2)>
impl<T1, T2> Default for ArrayTuple<(T1, T2)>
Source§impl<T1, T2, T3> Default for ArrayTuple<(T1, T2, T3)>
impl<T1, T2, T3> Default for ArrayTuple<(T1, T2, T3)>
Source§fn default() -> ArrayTuple<(T1, T2, T3)>
fn default() -> ArrayTuple<(T1, T2, T3)>
Source§impl<T1, T2, T3, T4> Default for ArrayTuple<(T1, T2, T3, T4)>
impl<T1, T2, T3, T4> Default for ArrayTuple<(T1, T2, T3, T4)>
Source§fn default() -> ArrayTuple<(T1, T2, T3, T4)>
fn default() -> ArrayTuple<(T1, T2, T3, T4)>
Source§impl<T1, T2, T3, T4, T5> Default for ArrayTuple<(T1, T2, T3, T4, T5)>
impl<T1, T2, T3, T4, T5> Default for ArrayTuple<(T1, T2, T3, T4, T5)>
Source§fn default() -> ArrayTuple<(T1, T2, T3, T4, T5)>
fn default() -> ArrayTuple<(T1, T2, T3, T4, T5)>
Source§impl<T1, T2, T3, T4, T5, T6> Default for ArrayTuple<(T1, T2, T3, T4, T5, T6)>
impl<T1, T2, T3, T4, T5, T6> Default for ArrayTuple<(T1, T2, T3, T4, T5, T6)>
Source§fn default() -> ArrayTuple<(T1, T2, T3, T4, T5, T6)>
fn default() -> ArrayTuple<(T1, T2, T3, T4, T5, T6)>
Source§impl<T1, T2, T3, T4, T5, T6, T7> Default for ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
impl<T1, T2, T3, T4, T5, T6, T7> Default for ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
Source§fn default() -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
fn default() -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
Source§impl<T1, T2, T3, T4, T5, T6, T7, T8> Default for ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
impl<T1, T2, T3, T4, T5, T6, T7, T8> Default for ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
Source§fn default() -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
fn default() -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
Source§impl<T> Deref for ArrayTuple<T>where
T: JsTuple,
impl<T> Deref for ArrayTuple<T>where
T: JsTuple,
Source§impl<T> ErasableGeneric for ArrayTuple<T>where
T: JsTuple,
impl<T> ErasableGeneric for ArrayTuple<T>where
T: JsTuple,
Source§impl<T1, T2, T3> From<(T1, T2, T3)> for ArrayTuple<(T1, T2, T3)>
impl<T1, T2, T3> From<(T1, T2, T3)> for ArrayTuple<(T1, T2, T3)>
Source§fn from(_: (T1, T2, T3)) -> ArrayTuple<(T1, T2, T3)>
fn from(_: (T1, T2, T3)) -> ArrayTuple<(T1, T2, T3)>
Source§impl<T1, T2, T3, T4> From<(T1, T2, T3, T4)> for ArrayTuple<(T1, T2, T3, T4)>
impl<T1, T2, T3, T4> From<(T1, T2, T3, T4)> for ArrayTuple<(T1, T2, T3, T4)>
Source§fn from(_: (T1, T2, T3, T4)) -> ArrayTuple<(T1, T2, T3, T4)>
fn from(_: (T1, T2, T3, T4)) -> ArrayTuple<(T1, T2, T3, T4)>
Source§impl<T1, T2, T3, T4, T5> From<(T1, T2, T3, T4, T5)> for ArrayTuple<(T1, T2, T3, T4, T5)>
impl<T1, T2, T3, T4, T5> From<(T1, T2, T3, T4, T5)> for ArrayTuple<(T1, T2, T3, T4, T5)>
Source§fn from(_: (T1, T2, T3, T4, T5)) -> ArrayTuple<(T1, T2, T3, T4, T5)>
fn from(_: (T1, T2, T3, T4, T5)) -> ArrayTuple<(T1, T2, T3, T4, T5)>
Source§impl<T1, T2, T3, T4, T5, T6> From<(T1, T2, T3, T4, T5, T6)> for ArrayTuple<(T1, T2, T3, T4, T5, T6)>
impl<T1, T2, T3, T4, T5, T6> From<(T1, T2, T3, T4, T5, T6)> for ArrayTuple<(T1, T2, T3, T4, T5, T6)>
Source§fn from(_: (T1, T2, T3, T4, T5, T6)) -> ArrayTuple<(T1, T2, T3, T4, T5, T6)>
fn from(_: (T1, T2, T3, T4, T5, T6)) -> ArrayTuple<(T1, T2, T3, T4, T5, T6)>
Source§impl<T1, T2, T3, T4, T5, T6, T7> From<(T1, T2, T3, T4, T5, T6, T7)> for ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
impl<T1, T2, T3, T4, T5, T6, T7> From<(T1, T2, T3, T4, T5, T6, T7)> for ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
Source§fn from(
_: (T1, T2, T3, T4, T5, T6, T7),
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
fn from( _: (T1, T2, T3, T4, T5, T6, T7), ) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>
Source§impl<T1, T2, T3, T4, T5, T6, T7, T8> From<(T1, T2, T3, T4, T5, T6, T7, T8)> for ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
impl<T1, T2, T3, T4, T5, T6, T7, T8> From<(T1, T2, T3, T4, T5, T6, T7, T8)> for ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
Source§fn from(
_: (T1, T2, T3, T4, T5, T6, T7, T8),
) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
fn from( _: (T1, T2, T3, T4, T5, T6, T7, T8), ) -> ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>
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<ArrayTuple<T>> for Objectwhere
T: JsTuple,
impl<T> From<ArrayTuple<T>> for Objectwhere
T: JsTuple,
Source§fn from(obj: ArrayTuple<T>) -> Object
fn from(obj: ArrayTuple<T>) -> Object
Source§impl From<JsValue> for ArrayTuple
impl From<JsValue> for ArrayTuple
Source§fn from(obj: JsValue) -> ArrayTuple
fn from(obj: JsValue) -> ArrayTuple
Source§impl<T> FromWasmAbi for ArrayTuple<T>where
T: JsTuple,
impl<T> FromWasmAbi for ArrayTuple<T>where
T: JsTuple,
Source§type Abi = <JsValue as FromWasmAbi>::Abi
type Abi = <JsValue as FromWasmAbi>::Abi
Source§unsafe fn from_abi(js: <ArrayTuple<T> as FromWasmAbi>::Abi) -> ArrayTuple<T>
unsafe fn from_abi(js: <ArrayTuple<T> as FromWasmAbi>::Abi) -> ArrayTuple<T>
Source§impl<T> IntoJsGeneric for ArrayTuple<T>
impl<T> IntoJsGeneric for ArrayTuple<T>
Source§type JsCanon = ArrayTuple<T>
type JsCanon = ArrayTuple<T>
JsGeneric form of this type.Source§fn to_js(self) -> ArrayTuple<T>
fn to_js(self) -> ArrayTuple<T>
JsGeneric value for self.Source§impl<T> IntoWasmAbi for ArrayTuple<T>where
T: JsTuple,
impl<T> IntoWasmAbi for ArrayTuple<T>where
T: JsTuple,
Source§type Abi = <JsValue as IntoWasmAbi>::Abi
type Abi = <JsValue as IntoWasmAbi>::Abi
Source§fn into_abi(self) -> <ArrayTuple<T> as IntoWasmAbi>::Abi
fn into_abi(self) -> <ArrayTuple<T> as IntoWasmAbi>::Abi
self into Self::Abi so that it can be sent across the wasm
ABI boundary.Source§impl<'a, T> IntoWasmAbi for &'a ArrayTuple<T>where
T: JsTuple,
impl<'a, T> IntoWasmAbi for &'a ArrayTuple<T>where
T: JsTuple,
Source§type Abi = <&'a JsValue as IntoWasmAbi>::Abi
type Abi = <&'a JsValue as IntoWasmAbi>::Abi
Source§fn into_abi(self) -> <&'a ArrayTuple<T> as IntoWasmAbi>::Abi
fn into_abi(self) -> <&'a ArrayTuple<T> as IntoWasmAbi>::Abi
self into Self::Abi so that it can be sent across the wasm
ABI boundary.Source§impl<T> Iterable for ArrayTuple<T>where
T: JsTuple,
impl<T> Iterable for ArrayTuple<T>where
T: JsTuple,
Source§impl<T> JsCast for ArrayTuple<T>where
T: JsTuple,
impl<T> JsCast for ArrayTuple<T>where
T: JsTuple,
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 is_type_of(val: &JsValue) -> bool
fn is_type_of(val: &JsValue) -> bool
JsValue provided
is a value of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> ArrayTuple<T>
fn unchecked_from_js(val: JsValue) -> ArrayTuple<T>
Source§fn unchecked_from_js_ref(val: &JsValue) -> &ArrayTuple<T>
fn unchecked_from_js_ref(val: &JsValue) -> &ArrayTuple<T>
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§impl<T> LongRefFromWasmAbi for ArrayTuple<T>where
T: JsTuple,
impl<T> LongRefFromWasmAbi for ArrayTuple<T>where
T: JsTuple,
Source§type Anchor = ArrayTuple<T>
type Anchor = ArrayTuple<T>
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(
js: <ArrayTuple<T> as LongRefFromWasmAbi>::Abi,
) -> <ArrayTuple<T> as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <ArrayTuple<T> as LongRefFromWasmAbi>::Abi, ) -> <ArrayTuple<T> as LongRefFromWasmAbi>::Anchor
RefFromWasmAbi::ref_from_abiSource§impl<T> OptionFromWasmAbi for ArrayTuple<T>where
T: JsTuple,
impl<T> OptionFromWasmAbi for ArrayTuple<T>where
T: JsTuple,
Source§fn is_none(abi: &<ArrayTuple<T> as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<ArrayTuple<T> as FromWasmAbi>::Abi) -> bool
None, and otherwise it will be passed to
FromWasmAbi.Source§impl<T> OptionIntoWasmAbi for ArrayTuple<T>where
T: JsTuple,
impl<T> OptionIntoWasmAbi for ArrayTuple<T>where
T: JsTuple,
Source§fn none() -> <ArrayTuple<T> as IntoWasmAbi>::Abi
fn none() -> <ArrayTuple<T> as IntoWasmAbi>::Abi
None branch of this option. Read moreSource§impl<'a, T> OptionIntoWasmAbi for &'a ArrayTuple<T>where
T: JsTuple,
impl<'a, T> OptionIntoWasmAbi for &'a ArrayTuple<T>where
T: JsTuple,
Source§fn none() -> <&'a ArrayTuple<T> as IntoWasmAbi>::Abi
fn none() -> <&'a ArrayTuple<T> as IntoWasmAbi>::Abi
None branch of this option. Read moreSource§impl<T> Promising for ArrayTuple<T>where
T: JsTuple,
impl<T> Promising for ArrayTuple<T>where
T: JsTuple,
Source§type Resolution = ArrayTuple<T>
type Resolution = ArrayTuple<T>
Source§impl<T> RefFromWasmAbi for ArrayTuple<T>where
T: JsTuple,
impl<T> RefFromWasmAbi for ArrayTuple<T>where
T: JsTuple,
Source§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = ManuallyDrop<ArrayTuple<T>>
type Anchor = ManuallyDrop<ArrayTuple<T>>
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: <ArrayTuple<T> as RefFromWasmAbi>::Abi,
) -> <ArrayTuple<T> as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <ArrayTuple<T> as RefFromWasmAbi>::Abi, ) -> <ArrayTuple<T> as RefFromWasmAbi>::Anchor
impl<T1, T2, Target> UpcastFrom<ArrayTuple<(T1, T2)>> for Array<Target>where
Target: UpcastFrom<T1> + UpcastFrom<T2>,
impl<T1, T2, Target> UpcastFrom<ArrayTuple<(T1, T2)>> for JsOption<Array<Target>>where
Target: UpcastFrom<T1> + UpcastFrom<T2>,
impl<T1, T2, T3, Target> UpcastFrom<ArrayTuple<(T1, T2, T3)>> for Array<Target>
impl<T1, T2, T3, Target> UpcastFrom<ArrayTuple<(T1, T2, T3)>> for JsOption<Array<Target>>
impl<T1, T2, T3, T4, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4)>> for Array<Target>
impl<T1, T2, T3, T4, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4)>> for JsOption<Array<Target>>
impl<T1, T2, T3, T4, T5, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5)>> for Array<Target>
impl<T1, T2, T3, T4, T5, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5)>> for JsOption<Array<Target>>
impl<T1, T2, T3, T4, T5, T6, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6)>> for Array<Target>where
Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6>,
impl<T1, T2, T3, T4, T5, T6, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6)>> for JsOption<Array<Target>>where
Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6>,
impl<T1, T2, T3, T4, T5, T6, T7, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>> for Array<Target>where
Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6> + UpcastFrom<T7>,
impl<T1, T2, T3, T4, T5, T6, T7, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>> for JsOption<Array<Target>>where
Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6> + UpcastFrom<T7>,
impl<T1, T2, T3, T4, T5, T6, T7, T8, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>> for Array<Target>where
Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6> + UpcastFrom<T7> + UpcastFrom<T8>,
impl<T1, T2, T3, T4, T5, T6, T7, T8, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>> for JsOption<Array<Target>>where
Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6> + UpcastFrom<T7> + UpcastFrom<T8>,
impl<T1, Target> UpcastFrom<ArrayTuple<(T1,)>> for Array<Target>where
Target: UpcastFrom<T1>,
impl<T1, Target> UpcastFrom<ArrayTuple<(T1,)>> for JsOption<Array<Target>>where
Target: UpcastFrom<T1>,
impl<T, U> UpcastFrom<ArrayTuple<T>> for ArrayTuple<U>
impl<T> UpcastFrom<ArrayTuple<T>> for JsValuewhere
T: JsTuple,
impl<T> UpcastFrom<ArrayTuple<T>> for JsOptionwhere
T: JsTuple,
Auto Trait Implementations§
impl<T> Freeze for ArrayTuple<T>
impl<T> RefUnwindSafe for ArrayTuple<T>where
T: RefUnwindSafe,
impl<T> Send for ArrayTuple<T>where
T: Send,
impl<T> Sync for ArrayTuple<T>where
T: Sync,
impl<T> Unpin for ArrayTuple<T>where
T: Unpin,
impl<T> UnsafeUnpin for ArrayTuple<T>
impl<T> UnwindSafe for ArrayTuple<T>where
T: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> JsGeneric for T
Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
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.