Struct stdweb::Object [−][src]
pub struct Object(_);
A type representing a JavaScript object.
Methods
impl Object
[src]
impl Object
Trait 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 Object
fn clone(&self) -> Object
[src]
fn clone(&self) -> Object
Returns 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 Object
fn eq(&self, other: &Object) -> bool
[src]
fn eq(&self, other: &Object) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Object
[src]
impl Eq for Object
impl Debug for Object
[src]
impl Debug for Object
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl InstanceOf for Object
[src]
impl InstanceOf for Object
fn instance_of(reference: &Reference) -> bool
[src]
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type Self
.
impl AsRef<Reference> for Object
[src]
impl AsRef<Reference> for Object
impl ReferenceType for Object
[src]
impl ReferenceType for Object
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts 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 Reference
impl TryFrom<Object> for Reference
[src]
impl TryFrom<Object> for Reference
type 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 Object
type 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 Object
type 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 Object
type 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 Object
type 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 Object
impl 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 Object
impl<'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>