Struct stdweb::Object [−][src]
pub struct Object(_);
A type representing a JavaScript object.
Methods
impl Object[src]
impl ObjectTrait Implementations
impl<K, V> TryFrom<BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
impl<K, V> TryFrom<BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: BTreeMap<K, V>) -> Result<Self, Self::Error>[src]
fn try_from(source: BTreeMap<K, V>) -> Result<Self, Self::Error>Performs the conversion.
impl<'a, K, V> TryFrom<&'a BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
impl<'a, K, V> TryFrom<&'a BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a BTreeMap<K, V>) -> Result<Self, Self::Error>[src]
fn try_from(source: &'a BTreeMap<K, V>) -> Result<Self, Self::Error>Performs the conversion.
impl<'a, K, V> TryFrom<&'a mut BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
impl<'a, K, V> TryFrom<&'a mut BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a mut BTreeMap<K, V>) -> Result<Self, Self::Error>[src]
fn try_from(source: &'a mut BTreeMap<K, V>) -> Result<Self, Self::Error>Performs the conversion.
impl<K, V> TryFrom<HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
impl<K, V> TryFrom<HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: HashMap<K, V>) -> Result<Self, Self::Error>[src]
fn try_from(source: HashMap<K, V>) -> Result<Self, Self::Error>Performs the conversion.
impl<'a, K, V> TryFrom<&'a HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
impl<'a, K, V> TryFrom<&'a HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a HashMap<K, V>) -> Result<Self, Self::Error>[src]
fn try_from(source: &'a HashMap<K, V>) -> Result<Self, Self::Error>Performs the conversion.
impl<'a, K, V> TryFrom<&'a mut HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, [src]
impl<'a, K, V> TryFrom<&'a mut HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerialize, type Error = Void
The type returned in the event of a conversion error.
fn try_from(source: &'a mut HashMap<K, V>) -> Result<Self, Self::Error>[src]
fn try_from(source: &'a mut HashMap<K, V>) -> Result<Self, Self::Error>Performs the conversion.
impl Clone for Object[src]
impl Clone for Objectfn clone(&self) -> Object[src]
fn clone(&self) -> ObjectReturns 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 Object[src]
impl PartialEq for Objectfn eq(&self, other: &Object) -> bool[src]
fn eq(&self, other: &Object) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Object) -> bool[src]
fn ne(&self, other: &Object) -> boolThis method tests for !=.
impl Eq for Object[src]
impl Eq for Objectimpl Debug for Object[src]
impl Debug for Objectfn 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 Object[src]
impl InstanceOf for Objectfn instance_of(reference: &Reference) -> bool[src]
fn instance_of(reference: &Reference) -> boolChecks whenever a given Reference if of type Self.
impl AsRef<Reference> for Object[src]
impl AsRef<Reference> for Objectimpl ReferenceType for Object[src]
impl ReferenceType for Objectunsafe 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<Object> for Reference[src]
impl From<Object> for Referenceimpl TryFrom<Object> for Reference[src]
impl TryFrom<Object> for Referencetype Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Object) -> Result<Self, Self::Error>[src]
fn try_from(value: Object) -> Result<Self, Self::Error>Performs the conversion.
impl TryFrom<Reference> for Object[src]
impl TryFrom<Reference> for Objecttype 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 Object[src]
impl<'_r> TryFrom<&'_r Reference> for Objecttype 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 Object[src]
impl TryFrom<Value> for Objecttype 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 Object[src]
impl<'_r> TryFrom<&'_r Value> for Objecttype 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 Object[src]
impl JsSerialize for Objectimpl From<Object> for BTreeMap<String, Value>[src]
impl From<Object> for BTreeMap<String, Value>impl<'a> From<&'a Object> for BTreeMap<String, Value>[src]
impl<'a> From<&'a Object> for BTreeMap<String, Value>impl<'a> From<&'a mut Object> for BTreeMap<String, Value>[src]
impl<'a> From<&'a mut Object> for BTreeMap<String, Value>impl From<Object> for HashMap<String, Value>[src]
impl From<Object> for HashMap<String, Value>impl<'a> From<&'a Object> for HashMap<String, Value>[src]
impl<'a> From<&'a Object> for HashMap<String, Value>impl<'a> From<&'a mut Object> for HashMap<String, Value>[src]
impl<'a> From<&'a mut Object> for HashMap<String, Value>impl<K: AsRef<str>, V: JsSerialize> From<BTreeMap<K, V>> for Object[src]
impl<K: AsRef<str>, V: JsSerialize> From<BTreeMap<K, V>> for Objectimpl<'a, K, V> From<&'a BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
impl<'a, K, V> From<&'a BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, impl<'a, K, V> From<&'a mut BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
impl<'a, K, V> From<&'a mut BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, impl<K, V> From<HashMap<K, V>> for Object where
K: AsRef<str> + Hash + Eq,
V: JsSerialize, [src]
impl<K, V> From<HashMap<K, V>> for Object where
K: AsRef<str> + Hash + Eq,
V: JsSerialize, impl<'a, K, V> From<&'a HashMap<K, V>> for Object where
K: AsRef<str> + Hash + Eq,
V: JsSerialize, [src]
impl<'a, K, V> From<&'a HashMap<K, V>> for Object where
K: AsRef<str> + Hash + Eq,
V: JsSerialize, impl<'a, K: Hash + Eq, V> From<&'a mut HashMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, [src]
impl<'a, K: Hash + Eq, V> From<&'a mut HashMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerialize, impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Object> for BTreeMap<String, V>[src]
impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Object> for BTreeMap<String, V>type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(object: Object) -> Result<Self, Self::Error>[src]
fn try_from(object: Object) -> Result<Self, Self::Error>Performs the conversion.
impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Object> for HashMap<String, V>[src]
impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Object> for HashMap<String, V>