pub trait FromInput<'js>: Sized {
    // Required methods
    fn num_args() -> Range<usize>;
    fn from_input<'i>(accessor: &mut InputAccessor<'i, 'js>) -> Result<Self>;
}

Required Methods§

source

fn num_args() -> Range<usize>

Get possible number of arguments

source

fn from_input<'i>(accessor: &mut InputAccessor<'i, 'js>) -> Result<Self>

Get it from input

Implementors§

source§

impl<'js> FromInput<'js> for Ctx<'js>

Get context from input

source§

impl<'js, T> FromInput<'js> for Opt<T>where T: FromJs<'js>,

Get the next optional argument from input

source§

impl<'js, T> FromInput<'js> for Rest<T>where T: FromJs<'js>,

Get the rest arguments from input

source§

impl<'js, T> FromInput<'js> for This<T>where T: FromJs<'js>,

Get the this from input

source§

impl<'js, T> FromInput<'js> for Twhere T: FromJs<'js>,

Get the next argument from input