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.
Required Methods§
Provided Methods§
fn apply<R>(self, function: &Function<'js>) -> Result<R>
fn defer<R>(self, function: Function<'js>) -> Result<()>where
Self: Sized,
fn construct<R>(self, function: &Constructor<'js>) -> Result<()>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".