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