Struct stdweb::Array [−][src]
pub struct Array(_);
A type representing a JavaScript array.
Methods
impl Array[src]
impl ArrayTrait Implementations
impl<T> TryFrom<Vec<T>> for Array where
T: JsSerialize, [src]
impl<T> TryFrom<Vec<T>> for Array where
T: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: Vec<T>) -> Result<Self, Self::Error>[src]
fn try_from(source: Vec<T>) -> Result<Self, Self::Error>Performs the conversion.
impl<'a, T> TryFrom<&'a Vec<T>> for Array where
T: JsSerialize, [src]
impl<'a, T> TryFrom<&'a Vec<T>> for Array where
T: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a Vec<T>) -> Result<Self, Self::Error>[src]
fn try_from(source: &'a Vec<T>) -> Result<Self, Self::Error>Performs the conversion.
impl<'a, T> TryFrom<&'a mut Vec<T>> for Array where
T: JsSerialize, [src]
impl<'a, T> TryFrom<&'a mut Vec<T>> for Array where
T: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a mut Vec<T>) -> Result<Self, Self::Error>[src]
fn try_from(source: &'a mut Vec<T>) -> Result<Self, Self::Error>Performs the conversion.
impl<'a, T> TryFrom<&'a [T]> for Array where
T: JsSerialize, [src]
impl<'a, T> TryFrom<&'a [T]> for Array where
T: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a [T]) -> Result<Self, Self::Error>[src]
fn try_from(source: &'a [T]) -> Result<Self, Self::Error>Performs the conversion.
impl<'a, T> TryFrom<&'a mut [T]> for Array where
T: JsSerialize, [src]
impl<'a, T> TryFrom<&'a mut [T]> for Array where
T: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a mut [T]) -> Result<Self, Self::Error>[src]
fn try_from(source: &'a mut [T]) -> Result<Self, Self::Error>Performs the conversion.
impl Clone for Array[src]
impl Clone for Arrayfn clone(&self) -> Array[src]
fn clone(&self) -> ArrayReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Array[src]
impl PartialEq for Arrayfn eq(&self, other: &Array) -> bool[src]
fn eq(&self, other: &Array) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Array) -> bool[src]
fn ne(&self, other: &Array) -> boolThis method tests for !=.
impl Eq for Array[src]
impl Eq for Arrayimpl Debug for Array[src]
impl Debug for Arrayfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl InstanceOf for Array[src]
impl InstanceOf for Arrayfn instance_of(reference: &Reference) -> bool[src]
fn instance_of(reference: &Reference) -> boolChecks whenever a given Reference if of type Self.
impl AsRef<Reference> for Array[src]
impl AsRef<Reference> for Arrayimpl ReferenceType for Array[src]
impl ReferenceType for Arrayunsafe fn from_reference_unchecked(reference: Reference) -> Self[src]
unsafe fn from_reference_unchecked(reference: Reference) -> SelfConverts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
impl From<Array> for Reference[src]
impl From<Array> for Referenceimpl TryFrom<Array> for Reference[src]
impl TryFrom<Array> for Referencetype Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Array) -> Result<Self, Self::Error>[src]
fn try_from(value: Array) -> Result<Self, Self::Error>Performs the conversion.
impl TryFrom<Reference> for Array[src]
impl TryFrom<Reference> for Arraytype Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>[src]
fn try_from(reference: Reference) -> Result<Self, Self::Error>Performs the conversion.
impl<'_r> TryFrom<&'_r Reference> for Array[src]
impl<'_r> TryFrom<&'_r Reference> for Arraytype Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>[src]
fn try_from(reference: &Reference) -> Result<Self, Self::Error>Performs the conversion.
impl TryFrom<Value> for Array[src]
impl TryFrom<Value> for Arraytype Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>[src]
fn try_from(value: Value) -> Result<Self, Self::Error>Performs the conversion.
impl<'_r> TryFrom<&'_r Value> for Array[src]
impl<'_r> TryFrom<&'_r Value> for Arraytype Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>[src]
fn try_from(value: &Value) -> Result<Self, Self::Error>Performs the conversion.
impl JsSerialize for Array[src]
impl JsSerialize for Arrayimpl From<Array> for Vec<Value>[src]
impl From<Array> for Vec<Value>impl<'a> From<&'a Array> for Vec<Value>[src]
impl<'a> From<&'a Array> for Vec<Value>impl<'a> From<&'a mut Array> for Vec<Value>[src]
impl<'a> From<&'a mut Array> for Vec<Value>impl<V> From<Vec<V>> for Array where
V: JsSerialize, [src]
impl<V> From<Vec<V>> for Array where
V: JsSerialize, impl<'a, V> From<&'a Vec<V>> for Array where
V: JsSerialize, [src]
impl<'a, V> From<&'a Vec<V>> for Array where
V: JsSerialize, impl<'a, V> From<&'a mut Vec<V>> for Array where
V: JsSerialize, [src]
impl<'a, V> From<&'a mut Vec<V>> for Array where
V: JsSerialize, impl<'a, V> From<&'a [V]> for Array where
V: JsSerialize, [src]
impl<'a, V> From<&'a [V]> for Array where
V: JsSerialize, impl<'a, V> From<&'a mut [V]> for Array where
V: JsSerialize, [src]
impl<'a, V> From<&'a mut [V]> for Array where
V: JsSerialize, fn from(value: &'a mut [V]) -> Self[src]
fn from(value: &'a mut [V]) -> SelfPerforms the conversion.
impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Array> for Vec<V>[src]
impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Array> for Vec<V>