neon::types::extract

Trait FromArgs

Source
pub trait FromArgs<'cx>: FromArgsInternal<'cx> { }
Expand description

Trait specifying values that may be extracted from function arguments.

Note: This trait is implemented for tuples of up to 32 values, but for the sake of brevity, only tuples up to size 8 are shown in this documentation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'cx, T1> FromArgs<'cx> for (T1,)
where T1: TryFromJs<'cx>,

Source§

impl<'cx, T1, T2> FromArgs<'cx> for (T1, T2)
where T1: TryFromJs<'cx>, T2: TryFromJs<'cx>,

Source§

impl<'cx, T1, T2, T3> FromArgs<'cx> for (T1, T2, T3)
where T1: TryFromJs<'cx>, T2: TryFromJs<'cx>, T3: TryFromJs<'cx>,

Source§

impl<'cx, T1, T2, T3, T4> FromArgs<'cx> for (T1, T2, T3, T4)
where T1: TryFromJs<'cx>, T2: TryFromJs<'cx>, T3: TryFromJs<'cx>, T4: TryFromJs<'cx>,

Source§

impl<'cx, T1, T2, T3, T4, T5> FromArgs<'cx> for (T1, T2, T3, T4, T5)
where T1: TryFromJs<'cx>, T2: TryFromJs<'cx>, T3: TryFromJs<'cx>, T4: TryFromJs<'cx>, T5: TryFromJs<'cx>,

Source§

impl<'cx, T1, T2, T3, T4, T5, T6> FromArgs<'cx> for (T1, T2, T3, T4, T5, T6)
where T1: TryFromJs<'cx>, T2: TryFromJs<'cx>, T3: TryFromJs<'cx>, T4: TryFromJs<'cx>, T5: TryFromJs<'cx>, T6: TryFromJs<'cx>,

Source§

impl<'cx, T1, T2, T3, T4, T5, T6, T7> FromArgs<'cx> for (T1, T2, T3, T4, T5, T6, T7)
where T1: TryFromJs<'cx>, T2: TryFromJs<'cx>, T3: TryFromJs<'cx>, T4: TryFromJs<'cx>, T5: TryFromJs<'cx>, T6: TryFromJs<'cx>, T7: TryFromJs<'cx>,

Source§

impl<'cx, T1, T2, T3, T4, T5, T6, T7, T8> FromArgs<'cx> for (T1, T2, T3, T4, T5, T6, T7, T8)
where T1: TryFromJs<'cx>, T2: TryFromJs<'cx>, T3: TryFromJs<'cx>, T4: TryFromJs<'cx>, T5: TryFromJs<'cx>, T6: TryFromJs<'cx>, T7: TryFromJs<'cx>, T8: TryFromJs<'cx>,

Implementors§

Source§

impl<'cx, T> FromArgs<'cx> for T
where T: TryFromJs<'cx>,