neon/types_impl/function/
private.rs

1use smallvec::SmallVec;
2
3use crate::{context::Cx, handle::Handle, result::NeonResult, types::JsValue};
4
5pub type ArgsVec<'a> = SmallVec<[Handle<'a, JsValue>; 8]>;
6
7/// This type marks the `TryIntoArguments` trait as sealed.
8pub trait TryIntoArgumentsInternal<'cx> {
9    fn try_into_args_vec(self, cx: &mut Cx<'cx>) -> NeonResult<ArgsVec<'cx>>;
10}
11
12/// This type marks the `Arguments` trait as sealed.
13pub trait ArgumentsInternal<'a> {
14    fn into_args_vec(self) -> ArgsVec<'a>;
15}