feat(napi) Extend #1195 to Vec<T>.

This patch is the sequel of
https://github.com/napi-rs/napi-rs/pull/1195 where `ToNapiValue` and
`FromNapiValue` are implemented for all `Vec<T>` where `T` is a 8 or
16 bits number.
This commit is contained in:
Ivan Enderlin 2022-05-30 16:29:44 +02:00
parent 5cdfc8cb7e
commit 94e95e87e7

View file

@ -212,6 +212,10 @@ macro_rules! impl_for_primitive_type {
};
}
impl_for_primitive_type!(u8);
impl_for_primitive_type!(i8);
impl_for_primitive_type!(u16);
impl_for_primitive_type!(i16);
impl_for_primitive_type!(u32);
impl_for_primitive_type!(i32);
impl_for_primitive_type!(i64);