neon/types_impl/function/
private.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use smallvec::SmallVec;

use crate::{context::Cx, handle::Handle, result::NeonResult, types::JsValue};

pub type ArgsVec<'a> = SmallVec<[Handle<'a, JsValue>; 8]>;

/// This type marks the `TryIntoArguments` trait as sealed.
pub trait TryIntoArgumentsInternal<'cx> {
    fn try_into_args_vec(self, cx: &mut Cx<'cx>) -> NeonResult<ArgsVec<'cx>>;
}

/// This type marks the `Arguments` trait as sealed.
pub trait ArgumentsInternal<'a> {
    fn into_args_vec(self) -> ArgsVec<'a>;
}