[][src]Struct stdweb::Object

pub struct Object(_);

A type representing a JavaScript object.

Methods

impl Object[src]

pub fn len(&self) -> usize[src]

Returns the number of elements in this particular object.

Trait Implementations

impl JsSerialize for Object[src]

impl<K, V> TryFrom<BTreeMap<K, V>> for Object where
    K: AsRef<str>,
    V: JsSerialize
[src]

type Error = Void

The type returned in the event of a conversion error.

impl<'a, K, V> TryFrom<&'a BTreeMap<K, V>> for Object where
    K: AsRef<str>,
    V: JsSerialize
[src]

type Error = Void

The type returned in the event of a conversion error.

impl<'a, K, V> TryFrom<&'a mut BTreeMap<K, V>> for Object where
    K: AsRef<str>,
    V: JsSerialize
[src]

type Error = Void

The type returned in the event of a conversion error.

impl<K, V> TryFrom<HashMap<K, V, RandomState>> for Object where
    K: AsRef<str> + Eq + Hash,
    V: JsSerialize
[src]

type Error = Void

The type returned in the event of a conversion error.

impl<'a, K, V> TryFrom<&'a HashMap<K, V, RandomState>> for Object where
    K: AsRef<str> + Eq + Hash,
    V: JsSerialize
[src]

type Error = Void

The type returned in the event of a conversion error.

impl<'a, K, V> TryFrom<&'a mut HashMap<K, V, RandomState>> for Object where
    K: AsRef<str> + Eq + Hash,
    V: JsSerialize
[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Object> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for Object[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for Object[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for Object[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for Object[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Object> for BTreeMap<String, V>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Object> for HashMap<String, V>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for Object[src]

impl ReferenceType for Object[src]

impl Eq for Object[src]

impl Clone for Object[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Object> for Object[src]

impl AsRef<Reference> for Object[src]

impl From<Object> for Reference[src]

impl From<Object> for BTreeMap<String, Value>[src]

impl<'a> From<&'a Object> for BTreeMap<String, Value>[src]

impl<'a> From<&'a mut Object> for BTreeMap<String, Value>[src]

impl From<Object> for HashMap<String, Value>[src]

impl<'a> From<&'a Object> for HashMap<String, Value>[src]

impl<'a> From<&'a mut Object> for HashMap<String, Value>[src]

impl<K: AsRef<str>, V: JsSerialize> From<BTreeMap<K, V>> for Object[src]

impl<'a, K, V> From<&'a 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
[src]

impl<K, V> From<HashMap<K, V, RandomState>> for Object where
    K: AsRef<str> + Hash + Eq,
    V: JsSerialize
[src]

impl<'a, K, V> From<&'a HashMap<K, V, RandomState>> for Object where
    K: AsRef<str> + Hash + Eq,
    V: JsSerialize
[src]

impl<'a, K: Hash + Eq, V> From<&'a mut HashMap<K, V, RandomState>> for Object where
    K: AsRef<str>,
    V: JsSerialize
[src]

impl Debug for Object[src]

Auto Trait Implementations

impl Send for Object

impl Sync for Object

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]