pub trait IntoInput<'js> {
    // Required methods
    fn num_args(&self) -> usize;
    fn into_input(self, input: &mut CallInput<'js>) -> Result<()>;
}
Expand description

A helper trait to prepare inputs for function calls

Required Methods§

source

fn num_args(&self) -> usize

Get actual number of arguments

source

fn into_input(self, input: &mut CallInput<'js>) -> Result<()>

Put the value into inputs

Implementors§

source§

impl<'js, T> IntoInput<'js> for Opt<T>where T: IntoJs<'js>,

source§

impl<'js, T> IntoInput<'js> for Rest<T>where T: IntoJs<'js>,

source§

impl<'js, T> IntoInput<'js> for This<T>where T: IntoJs<'js>,

source§

impl<'js, T> IntoInput<'js> for Twhere T: IntoJs<'js>,