[][src]Struct rquickjs::MultiValue

pub struct MultiValue<'js> { /* fields omitted */ }

An list of Js values.

Handed to callbacks as arguments.

Methods

impl<'js> MultiValue<'js>[src]

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

Returns the number of js values this multi value contains.

pub fn is_empty(&self) -> bool[src]

Returns wether there are no js values in multi value container.

pub fn into_vec(self) -> Vec<Value<'js>>[src]

Returns a vector containing all the js values.

pub fn iter(&mut self) -> ValueIter<'js>[src]

Returns a interator over the js values.

Trait Implementations

impl<'js> Clone for MultiValue<'js>[src]

impl<'js> Drop for MultiValue<'js>[src]

impl<'js> FromJsMulti<'js> for MultiValue<'js>[src]

Auto Trait Implementations

impl<'js> !RefUnwindSafe for MultiValue<'js>

impl<'js> !Send for MultiValue<'js>

impl<'js> !Sync for MultiValue<'js>

impl<'js> Unpin for MultiValue<'js>

impl<'js> UnwindSafe for MultiValue<'js>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.