Struct rquickjs::convert::List

source ·
pub struct List<T>(pub T);
Expand description

A helper type for turning a tuple into a JavaScript array. Implements IntoJs and FromJs for tuples of various lengths

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<'js, A> FromJs<'js> for List<(A,)>
where A: FromJs<'js>,

source§

fn from_js(_ctx: &Ctx<'js>, value: Value<'js>) -> Result<List<(A,)>, Error>

source§

impl<'js, A, B> FromJs<'js> for List<(A, B)>
where A: FromJs<'js>, B: FromJs<'js>,

source§

fn from_js(_ctx: &Ctx<'js>, value: Value<'js>) -> Result<List<(A, B)>, Error>

source§

impl<'js, A, B, C> FromJs<'js> for List<(A, B, C)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>,

source§

fn from_js(_ctx: &Ctx<'js>, value: Value<'js>) -> Result<List<(A, B, C)>, Error>

source§

impl<'js, A, B, C, D> FromJs<'js> for List<(A, B, C, D)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>,

source§

fn from_js( _ctx: &Ctx<'js>, value: Value<'js> ) -> Result<List<(A, B, C, D)>, Error>

source§

impl<'js, A, B, C, D, E> FromJs<'js> for List<(A, B, C, D, E)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>,

source§

fn from_js( _ctx: &Ctx<'js>, value: Value<'js> ) -> Result<List<(A, B, C, D, E)>, Error>

source§

impl<'js, A, B, C, D, E, F> FromJs<'js> for List<(A, B, C, D, E, F)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>,

source§

fn from_js( _ctx: &Ctx<'js>, value: Value<'js> ) -> Result<List<(A, B, C, D, E, F)>, Error>

source§

impl<'js, A, B, C, D, E, F, G> FromJs<'js> for List<(A, B, C, D, E, F, G)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>,

source§

fn from_js( _ctx: &Ctx<'js>, value: Value<'js> ) -> Result<List<(A, B, C, D, E, F, G)>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H> FromJs<'js> for List<(A, B, C, D, E, F, G, H)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>,

source§

fn from_js( _ctx: &Ctx<'js>, value: Value<'js> ) -> Result<List<(A, B, C, D, E, F, G, H)>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I> FromJs<'js> for List<(A, B, C, D, E, F, G, H, I)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>, I: FromJs<'js>,

source§

impl<'js, A, B, C, D, E, F, G, H, I, J> FromJs<'js> for List<(A, B, C, D, E, F, G, H, I, J)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>, I: FromJs<'js>, J: FromJs<'js>,

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K> FromJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>, I: FromJs<'js>, J: FromJs<'js>, K: FromJs<'js>,

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L> FromJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>, I: FromJs<'js>, J: FromJs<'js>, K: FromJs<'js>, L: FromJs<'js>,

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M> FromJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>, I: FromJs<'js>, J: FromJs<'js>, K: FromJs<'js>, L: FromJs<'js>, M: FromJs<'js>,

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N> FromJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>, I: FromJs<'js>, J: FromJs<'js>, K: FromJs<'js>, L: FromJs<'js>, M: FromJs<'js>, N: FromJs<'js>,

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> FromJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>, I: FromJs<'js>, J: FromJs<'js>, K: FromJs<'js>, L: FromJs<'js>, M: FromJs<'js>, N: FromJs<'js>, O: FromJs<'js>,

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>
where A: FromJs<'js>, B: FromJs<'js>, C: FromJs<'js>, D: FromJs<'js>, E: FromJs<'js>, F: FromJs<'js>, G: FromJs<'js>, H: FromJs<'js>, I: FromJs<'js>, J: FromJs<'js>, K: FromJs<'js>, L: FromJs<'js>, M: FromJs<'js>, N: FromJs<'js>, O: FromJs<'js>, P: FromJs<'js>,

source§

impl<'js, A> IntoJs<'js> for List<(A,)>
where A: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B> IntoJs<'js> for List<(A, B)>
where A: IntoJs<'js>, B: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C> IntoJs<'js> for List<(A, B, C)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D> IntoJs<'js> for List<(A, B, C, D)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E> IntoJs<'js> for List<(A, B, C, D, E)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F> IntoJs<'js> for List<(A, B, C, D, E, F)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G> IntoJs<'js> for List<(A, B, C, D, E, F, G)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H> IntoJs<'js> for List<(A, B, C, D, E, F, G, H)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I, J> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>, M: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>, M: IntoJs<'js>, N: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>, M: IntoJs<'js>, N: IntoJs<'js>, O: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

source§

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>
where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>, M: IntoJs<'js>, N: IntoJs<'js>, O: IntoJs<'js>, P: IntoJs<'js>,

source§

fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>

Auto Trait Implementations§

§

impl<T> Freeze for List<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for List<T>
where T: RefUnwindSafe,

§

impl<T> Send for List<T>
where T: Send,

§

impl<T> Sync for List<T>
where T: Sync,

§

impl<T> Unpin for List<T>
where T: Unpin,

§

impl<T> UnwindSafe for List<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'js, T> AsProperty<'js, T> for T
where T: IntoJs<'js>,

source§

fn config( self, ctx: &Ctx<'js> ) -> Result<(i32, Value<'js>, Value<'js>, Value<'js>), Error>

Property configuration Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<'js, T> FromParam<'js> for T
where T: FromJs<'js>,

source§

fn param_requirement() -> ParamRequirement

The parameters requirements this value requires.
source§

fn from_param<'a>(params: &mut ParamsAccessor<'a, 'js>) -> Result<T, Error>

Convert from a parameter value.
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<'js, T> IntoArg<'js> for T
where T: IntoJs<'js>,

source§

fn num_args(&self) -> usize

The number of arguments this value produces.
source§

fn into_arg(self, args: &mut Args<'js>) -> Result<(), Error>

Convert the value into an argument.
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ParallelSend for T
where T: Send,