Struct stdweb::Object
[−]
[src]
pub struct Object(_);
A type representing a JavaScript object.
Methods
impl Object
[src]
Trait Implementations
impl<K, V> TryFrom<BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerializable,
[src]
K: AsRef<str>,
V: JsSerializable,
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]
Performs the conversion.
impl<'a, K, V> TryFrom<&'a BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerializable,
[src]
K: AsRef<str>,
V: JsSerializable,
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]
Performs the conversion.
impl<'a, K, V> TryFrom<&'a mut BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerializable,
[src]
K: AsRef<str>,
V: JsSerializable,
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]
Performs the conversion.
impl<K, V> TryFrom<HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerializable,
[src]
K: AsRef<str> + Eq + Hash,
V: JsSerializable,
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]
Performs the conversion.
impl<'a, K, V> TryFrom<&'a HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerializable,
[src]
K: AsRef<str> + Eq + Hash,
V: JsSerializable,
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]
Performs the conversion.
impl<'a, K, V> TryFrom<&'a mut HashMap<K, V>> for Object where
K: AsRef<str> + Eq + Hash,
V: JsSerializable,
[src]
K: AsRef<str> + Eq + Hash,
V: JsSerializable,
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]
Performs the conversion.
impl Clone for Object
[src]
fn clone(&self) -> Object
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Object
[src]
fn eq(&self, __arg_0: &Object) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Object) -> bool
[src]
This method tests for !=
.
impl Debug for Object
[src]
impl<K: AsRef<str>, V: JsSerializable> From<BTreeMap<K, V>> for Object
[src]
impl<'a, K, V> From<&'a BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerializable,
[src]
K: AsRef<str>,
V: JsSerializable,
impl<'a, K, V> From<&'a mut BTreeMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerializable,
[src]
K: AsRef<str>,
V: JsSerializable,
impl<K, V> From<HashMap<K, V>> for Object where
K: AsRef<str> + Hash + Eq,
V: JsSerializable,
[src]
K: AsRef<str> + Hash + Eq,
V: JsSerializable,
impl<'a, K, V> From<&'a HashMap<K, V>> for Object where
K: AsRef<str> + Hash + Eq,
V: JsSerializable,
[src]
K: AsRef<str> + Hash + Eq,
V: JsSerializable,
impl<'a, K: Hash + Eq, V> From<&'a mut HashMap<K, V>> for Object where
K: AsRef<str>,
V: JsSerializable,
[src]
K: AsRef<str>,
V: JsSerializable,