pub trait ToNapiValue: Sized {
// Required method
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>;
// Provided method
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>> { ... }
}Required Methods§
Sourceunsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
§Safety
this function called to convert rust values to napi values
Provided Methods§
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>>
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 ToNapiValue for &Value
impl ToNapiValue for &Value
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &bool
impl ToNapiValue for &bool
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &f64
impl ToNapiValue for &f64
unsafe fn to_napi_value(env: napi_env, val: &f64) -> Result<napi_value>
Source§impl ToNapiValue for &i8
impl ToNapiValue for &i8
unsafe fn to_napi_value(env: napi_env, val: &i8) -> Result<napi_value>
Source§impl ToNapiValue for &i16
impl ToNapiValue for &i16
unsafe fn to_napi_value(env: napi_env, val: &i16) -> Result<napi_value>
Source§impl ToNapiValue for &i32
impl ToNapiValue for &i32
unsafe fn to_napi_value(env: napi_env, val: &i32) -> Result<napi_value>
Source§impl ToNapiValue for &i64
impl ToNapiValue for &i64
unsafe fn to_napi_value(env: napi_env, val: &i64) -> Result<napi_value>
Source§impl ToNapiValue for &i128
impl ToNapiValue for &i128
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &str
impl ToNapiValue for &str
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &u8
impl ToNapiValue for &u8
unsafe fn to_napi_value(env: napi_env, val: &u8) -> Result<napi_value>
Source§impl ToNapiValue for &u16
impl ToNapiValue for &u16
unsafe fn to_napi_value(env: napi_env, val: &u16) -> Result<napi_value>
Source§impl ToNapiValue for &u32
impl ToNapiValue for &u32
unsafe fn to_napi_value(env: napi_env, val: &u32) -> Result<napi_value>
Source§impl ToNapiValue for &u64
impl ToNapiValue for &u64
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &u128
impl ToNapiValue for &u128
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &usize
impl ToNapiValue for &usize
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &String
impl ToNapiValue for &String
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &Map<String, Value>
impl ToNapiValue for &Map<String, Value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &Number
impl ToNapiValue for &Number
unsafe fn to_napi_value(env: napi_env, n: Self) -> Result<napi_value>
Source§impl ToNapiValue for &mut bool
impl ToNapiValue for &mut bool
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &mut f64
impl ToNapiValue for &mut f64
unsafe fn to_napi_value(env: napi_env, val: &mut f64) -> Result<napi_value>
Source§impl ToNapiValue for &mut i8
impl ToNapiValue for &mut i8
unsafe fn to_napi_value(env: napi_env, val: &mut i8) -> Result<napi_value>
Source§impl ToNapiValue for &mut i16
impl ToNapiValue for &mut i16
unsafe fn to_napi_value(env: napi_env, val: &mut i16) -> Result<napi_value>
Source§impl ToNapiValue for &mut i32
impl ToNapiValue for &mut i32
unsafe fn to_napi_value(env: napi_env, val: &mut i32) -> Result<napi_value>
Source§impl ToNapiValue for &mut i64
impl ToNapiValue for &mut i64
unsafe fn to_napi_value(env: napi_env, val: &mut i64) -> Result<napi_value>
Source§impl ToNapiValue for &mut i128
impl ToNapiValue for &mut i128
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &mut u8
impl ToNapiValue for &mut u8
unsafe fn to_napi_value(env: napi_env, val: &mut u8) -> Result<napi_value>
Source§impl ToNapiValue for &mut u16
impl ToNapiValue for &mut u16
unsafe fn to_napi_value(env: napi_env, val: &mut u16) -> Result<napi_value>
Source§impl ToNapiValue for &mut u32
impl ToNapiValue for &mut u32
unsafe fn to_napi_value(env: napi_env, val: &mut u32) -> Result<napi_value>
Source§impl ToNapiValue for &mut u64
impl ToNapiValue for &mut u64
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &mut u128
impl ToNapiValue for &mut u128
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &mut usize
impl ToNapiValue for &mut usize
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for &mut String
impl ToNapiValue for &mut String
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for Value
impl ToNapiValue for Value
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for bool
impl ToNapiValue for bool
unsafe fn to_napi_value(env: napi_env, val: bool) -> Result<napi_value>
Source§impl ToNapiValue for f32
impl ToNapiValue for f32
unsafe fn to_napi_value(env: napi_env, val: f32) -> Result<napi_value>
Source§impl ToNapiValue for f64
impl ToNapiValue for f64
unsafe fn to_napi_value(env: napi_env, val: f64) -> Result<napi_value>
Source§impl ToNapiValue for i8
impl ToNapiValue for i8
unsafe fn to_napi_value(env: napi_env, val: i8) -> Result<napi_value>
Source§impl ToNapiValue for i16
impl ToNapiValue for i16
unsafe fn to_napi_value(env: napi_env, val: i16) -> Result<napi_value>
Source§impl ToNapiValue for i32
impl ToNapiValue for i32
unsafe fn to_napi_value(env: napi_env, val: i32) -> Result<napi_value>
Source§impl ToNapiValue for i64
impl ToNapiValue for i64
unsafe fn to_napi_value(env: napi_env, val: i64) -> Result<napi_value>
Source§impl ToNapiValue for i128
impl ToNapiValue for i128
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for isize
impl ToNapiValue for isize
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for u8
impl ToNapiValue for u8
unsafe fn to_napi_value(env: napi_env, val: u8) -> Result<napi_value>
Source§impl ToNapiValue for u16
impl ToNapiValue for u16
unsafe fn to_napi_value(env: napi_env, val: u16) -> Result<napi_value>
Source§impl ToNapiValue for u32
impl ToNapiValue for u32
unsafe fn to_napi_value(env: napi_env, val: u32) -> Result<napi_value>
Source§impl ToNapiValue for u64
impl ToNapiValue for u64
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for u128
impl ToNapiValue for u128
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for usize
impl ToNapiValue for usize
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for String
impl ToNapiValue for String
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for NaiveDateTime
impl ToNapiValue for NaiveDateTime
unsafe fn to_napi_value(env: napi_env, val: NaiveDateTime) -> Result<napi_value>
Source§impl ToNapiValue for Map<String, Value>
impl ToNapiValue for Map<String, Value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl ToNapiValue for Number
impl ToNapiValue for Number
unsafe fn to_napi_value(env: napi_env, n: Self) -> Result<napi_value>
Source§impl ToNapiValue for napi_value
impl ToNapiValue for napi_value
unsafe fn to_napi_value(_env: napi_env, val: Self) -> Result<napi_value>
Source§impl<K, V> ToNapiValue for BTreeMap<K, V>
impl<K, V> ToNapiValue for BTreeMap<K, V>
unsafe fn to_napi_value(raw_env: napi_env, val: Self) -> Result<napi_value>
Source§impl<K, V, S> ToNapiValue for HashMap<K, V, S>
impl<K, V, S> ToNapiValue for HashMap<K, V, S>
unsafe fn to_napi_value(raw_env: napi_env, val: Self) -> Result<napi_value>
Source§impl<K, V, S> ToNapiValue for IndexMap<K, V, S>
Available on crate feature object_indexmap only.
impl<K, V, S> ToNapiValue for IndexMap<K, V, S>
Available on crate feature
object_indexmap only.unsafe fn to_napi_value(raw_env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T0: ToNapiValue,
T1: ToNapiValue,
T2: ToNapiValue,
T3: ToNapiValue,
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T0: ToNapiValue,
T1: ToNapiValue,
T2: ToNapiValue,
T3: ToNapiValue,
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T1: ToNapiValue,
T2: ToNapiValue,
T3: ToNapiValue,
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T1: ToNapiValue,
T2: ToNapiValue,
T3: ToNapiValue,
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T2: ToNapiValue,
T3: ToNapiValue,
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T2: ToNapiValue,
T3: ToNapiValue,
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T3: ToNapiValue,
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T3: ToNapiValue,
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T4: ToNapiValue,
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T5: ToNapiValue,
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T6: ToNapiValue,
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T7, T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T7: ToNapiValue,
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T8, T9, T10, T11, T12, T13, T14, T15)where
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T8, T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T8, T9, T10, T11, T12, T13, T14, T15)where
T8: ToNapiValue,
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T9, T10, T11, T12, T13, T14, T15)where
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T9, T10, T11, T12, T13, T14, T15> ToNapiValue for (T9, T10, T11, T12, T13, T14, T15)where
T9: ToNapiValue,
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T10, T11, T12, T13, T14, T15> ToNapiValue for (T10, T11, T12, T13, T14, T15)where
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
impl<T10, T11, T12, T13, T14, T15> ToNapiValue for (T10, T11, T12, T13, T14, T15)where
T10: ToNapiValue,
T11: ToNapiValue,
T12: ToNapiValue,
T13: ToNapiValue,
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T11, T12, T13, T14, T15> ToNapiValue for (T11, T12, T13, T14, T15)
impl<T11, T12, T13, T14, T15> ToNapiValue for (T11, T12, T13, T14, T15)
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T12, T13, T14, T15> ToNapiValue for (T12, T13, T14, T15)
impl<T12, T13, T14, T15> ToNapiValue for (T12, T13, T14, T15)
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T13, T14, T15> ToNapiValue for (T13, T14, T15)
impl<T13, T14, T15> ToNapiValue for (T13, T14, T15)
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T14, T15> ToNapiValue for (T14, T15)where
T14: ToNapiValue,
T15: ToNapiValue,
impl<T14, T15> ToNapiValue for (T14, T15)where
T14: ToNapiValue,
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T15> ToNapiValue for (T15,)where
T15: ToNapiValue,
impl<T15> ToNapiValue for (T15,)where
T15: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for &Rc<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for &Rc<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for &Arc<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for &Arc<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for &Vec<T>where
for<'a> &'a T: ToNapiValue,
impl<T> ToNapiValue for &Vec<T>where
for<'a> &'a T: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for &Mutex<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for &Mutex<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for &mut Rc<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for &mut Rc<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for &mut Arc<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for &mut Arc<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for &mut Vec<T>where
for<'a> &'a T: ToNapiValue,
impl<T> ToNapiValue for &mut Vec<T>where
for<'a> &'a T: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for &mut Mutex<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for &mut Mutex<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for Option<T>where
T: ToNapiValue,
impl<T> ToNapiValue for Option<T>where
T: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for Rc<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for Rc<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for Arc<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for Arc<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for Vec<T>where
T: ToNapiValue,
impl<T> ToNapiValue for Vec<T>where
T: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T> ToNapiValue for Mutex<T>where
T: ToNapiValue + Clone,
impl<T> ToNapiValue for Mutex<T>where
T: ToNapiValue + Clone,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T, const N: usize> ToNapiValue for &[T; N]where
for<'a> &'a T: ToNapiValue,
impl<T, const N: usize> ToNapiValue for &[T; N]where
for<'a> &'a T: ToNapiValue,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<T, const N: usize> ToNapiValue for [T; N]where
T: ToNapiValue + Copy,
impl<T, const N: usize> ToNapiValue for [T; N]where
T: ToNapiValue + Copy,
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Source§impl<Tz: TimeZone> ToNapiValue for DateTime<Tz>
impl<Tz: TimeZone> ToNapiValue for DateTime<Tz>
unsafe fn to_napi_value(env: napi_env, val: DateTime<Tz>) -> Result<napi_value>
Source§impl<V> ToNapiValue for BTreeSet<V>where
V: ToNapiValue,
impl<V> ToNapiValue for BTreeSet<V>where
V: ToNapiValue,
unsafe fn to_napi_value(raw_env: napi_env, val: Self) -> Result<napi_value>
Source§impl<V, S> ToNapiValue for HashSet<V, S>where
V: ToNapiValue,
impl<V, S> ToNapiValue for HashSet<V, S>where
V: ToNapiValue,
unsafe fn to_napi_value(raw_env: napi_env, val: Self) -> Result<napi_value>
Source§impl<V, S> ToNapiValue for IndexSet<V, S>where
V: ToNapiValue,
Available on crate feature object_indexmap only.
impl<V, S> ToNapiValue for IndexSet<V, S>where
V: ToNapiValue,
Available on crate feature
object_indexmap only.