pub trait IntoArgs<'js> {
// Required methods
fn num_args(&self) -> usize;
fn into_args(self, args: &mut Args<'js>) -> Result<(), Error>;
// Provided methods
fn apply<R>(self, function: &Function<'js>) -> Result<R, Error>
where R: FromJs<'js>,
Self: Sized { ... }
fn defer<R>(self, function: Function<'js>) -> Result<(), Error>
where Self: Sized { ... }
fn construct<R>(self, function: &Constructor<'js>) -> Result<(), Error>
where Self: Sized { ... }
}
Expand description
A trait for converting a tuple of values into a list arguments.