Trait ToNapiValue

Source
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§

Source

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§

Source

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

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &bool

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &f64

Source§

impl ToNapiValue for &i8

Source§

impl ToNapiValue for &i16

Source§

impl ToNapiValue for &i32

Source§

impl ToNapiValue for &i64

Source§

impl ToNapiValue for &i128

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &str

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &u8

Source§

impl ToNapiValue for &u16

Source§

impl ToNapiValue for &u32

Source§

impl ToNapiValue for &u64

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &u128

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &usize

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &String

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &Map<String, Value>

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &Number

Source§

unsafe fn to_napi_value(env: napi_env, n: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &mut bool

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &mut f64

Source§

unsafe fn to_napi_value(env: napi_env, val: &mut f64) -> Result<napi_value>

Source§

impl ToNapiValue for &mut i8

Source§

unsafe fn to_napi_value(env: napi_env, val: &mut i8) -> Result<napi_value>

Source§

impl ToNapiValue for &mut i16

Source§

unsafe fn to_napi_value(env: napi_env, val: &mut i16) -> Result<napi_value>

Source§

impl ToNapiValue for &mut i32

Source§

unsafe fn to_napi_value(env: napi_env, val: &mut i32) -> Result<napi_value>

Source§

impl ToNapiValue for &mut i64

Source§

unsafe fn to_napi_value(env: napi_env, val: &mut i64) -> Result<napi_value>

Source§

impl ToNapiValue for &mut i128

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &mut u8

Source§

unsafe fn to_napi_value(env: napi_env, val: &mut u8) -> Result<napi_value>

Source§

impl ToNapiValue for &mut u16

Source§

unsafe fn to_napi_value(env: napi_env, val: &mut u16) -> Result<napi_value>

Source§

impl ToNapiValue for &mut u32

Source§

unsafe fn to_napi_value(env: napi_env, val: &mut u32) -> Result<napi_value>

Source§

impl ToNapiValue for &mut u64

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &mut u128

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &mut usize

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for &mut String

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for Value

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for bool

Source§

impl ToNapiValue for f32

Source§

impl ToNapiValue for f64

Source§

impl ToNapiValue for i8

Source§

impl ToNapiValue for i16

Source§

impl ToNapiValue for i32

Source§

impl ToNapiValue for i64

Source§

impl ToNapiValue for i128

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for isize

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for u8

Source§

impl ToNapiValue for u16

Source§

impl ToNapiValue for u32

Source§

impl ToNapiValue for u64

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for u128

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for usize

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for String

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for NaiveDateTime

Source§

impl ToNapiValue for Map<String, Value>

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl ToNapiValue for Number

Source§

unsafe fn to_napi_value(env: napi_env, n: Self) -> Result<napi_value>

Source§

impl ToNapiValue for napi_value

Source§

unsafe fn to_napi_value(_env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<K, V> ToNapiValue for BTreeMap<K, V>
where K: AsRef<str>, V: ToNapiValue,

Source§

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>
where K: AsRef<str>, V: ToNapiValue,

Source§

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>
where K: AsRef<str>, V: ToNapiValue, S: Default + BuildHasher,

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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)

Source§

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,

Source§

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,

Source§

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,

Source§

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)
where T11: ToNapiValue, T12: ToNapiValue, T13: ToNapiValue, T14: ToNapiValue, T15: ToNapiValue,

Source§

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)
where T12: ToNapiValue, T13: ToNapiValue, T14: ToNapiValue, T15: ToNapiValue,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T13, T14, T15> ToNapiValue for (T13, T14, T15)
where T13: ToNapiValue, T14: ToNapiValue, T15: ToNapiValue,

Source§

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,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T15> ToNapiValue for (T15,)
where T15: ToNapiValue,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T> ToNapiValue for &Rc<T>
where T: ToNapiValue + Clone,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T> ToNapiValue for &Arc<T>
where T: ToNapiValue + Clone,

Source§

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,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T> ToNapiValue for &Mutex<T>
where T: ToNapiValue + Clone,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T> ToNapiValue for Option<T>
where T: ToNapiValue,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T> ToNapiValue for Rc<T>
where T: ToNapiValue + Clone,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T> ToNapiValue for Arc<T>
where T: ToNapiValue + Clone,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T> ToNapiValue for Vec<T>
where T: ToNapiValue,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<T> ToNapiValue for Mutex<T>
where T: ToNapiValue + Clone,

Source§

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,

Source§

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,

Source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Source§

impl<Tz: TimeZone> ToNapiValue for DateTime<Tz>

Source§

impl<V> ToNapiValue for BTreeSet<V>
where V: ToNapiValue,

Source§

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,

Source§

unsafe fn to_napi_value(raw_env: napi_env, val: Self) -> Result<napi_value>

Implementors§

Source§

impl ToNapiValue for &JsString<'_>

Source§

impl ToNapiValue for &BigInt64ArraySlice<'_>

Source§

impl ToNapiValue for &BigUint64ArraySlice<'_>

Source§

impl ToNapiValue for &BufferSlice<'_>

Source§

impl ToNapiValue for &Float32ArraySlice<'_>

Source§

impl ToNapiValue for &Float64ArraySlice<'_>

Source§

impl ToNapiValue for &Int8ArraySlice<'_>

Source§

impl ToNapiValue for &Int16ArraySlice<'_>

Source§

impl ToNapiValue for &Int32ArraySlice<'_>

Source§

impl ToNapiValue for &Null

Source§

impl ToNapiValue for &Object<'_>

Source§

impl ToNapiValue for &Uint8ArraySlice<'_>

Source§

impl ToNapiValue for &Uint16ArraySlice<'_>

Source§

impl ToNapiValue for &Uint32ArraySlice<'_>

Source§

impl ToNapiValue for &i64n

Source§

impl ToNapiValue for &Undefined

Source§

impl ToNapiValue for &mut BigInt64Array

Source§

impl ToNapiValue for &mut BigInt64ArraySlice<'_>

Source§

impl ToNapiValue for &mut BigUint64Array

Source§

impl ToNapiValue for &mut BigUint64ArraySlice<'_>

Source§

impl ToNapiValue for &mut Float32Array

Source§

impl ToNapiValue for &mut Float32ArraySlice<'_>

Source§

impl ToNapiValue for &mut Float64Array

Source§

impl ToNapiValue for &mut Float64ArraySlice<'_>

Source§

impl ToNapiValue for &mut Int8Array

Source§

impl ToNapiValue for &mut Int8ArraySlice<'_>

Source§

impl ToNapiValue for &mut Int16Array

Source§

impl ToNapiValue for &mut Int16ArraySlice<'_>

Source§

impl ToNapiValue for &mut Int32Array

Source§

impl ToNapiValue for &mut Int32ArraySlice<'_>

Source§

impl ToNapiValue for &mut Null

Source§

impl ToNapiValue for &mut Uint8Array

Source§

impl ToNapiValue for &mut Uint8ArraySlice<'_>

Source§

impl ToNapiValue for &mut Uint8ClampedArray

Source§

impl ToNapiValue for &mut Uint16Array

Source§

impl ToNapiValue for &mut Uint16ArraySlice<'_>

Source§

impl ToNapiValue for &mut Uint32Array

Source§

impl ToNapiValue for &mut Uint32ArraySlice<'_>

Source§

impl ToNapiValue for &mut i64n

Source§

impl ToNapiValue for &mut Undefined

Source§

impl ToNapiValue for JsBoolean

Source§

impl ToNapiValue for JsError

Source§

impl ToNapiValue for JsObject

Source§

impl ToNapiValue for JsRangeError

Source§

impl ToNapiValue for JsSyntaxError

Source§

impl ToNapiValue for JsTypeError

Source§

impl ToNapiValue for BigInt64Array

Source§

impl ToNapiValue for BigInt

Source§

impl ToNapiValue for BigUint64Array

Source§

impl ToNapiValue for Buffer

Source§

impl ToNapiValue for Float32Array

Source§

impl ToNapiValue for Float64Array

Source§

impl ToNapiValue for Int8Array

Source§

impl ToNapiValue for Int16Array

Source§

impl ToNapiValue for Int32Array

Source§

impl ToNapiValue for Latin1String

Source§

impl ToNapiValue for Null

Source§

impl ToNapiValue for RawCString

Source§

impl ToNapiValue for Symbol

Source§

impl ToNapiValue for Uint8Array

Source§

impl ToNapiValue for Uint8ClampedArray

Source§

impl ToNapiValue for Uint16Array

Source§

impl ToNapiValue for Uint32Array

Source§

impl ToNapiValue for Utf16String

Source§

impl ToNapiValue for i64n

Source§

impl ToNapiValue for Undefined

Source§

impl<'env, T: JsValue<'env>> ToNapiValue for T

Source§

impl<A, B> ToNapiValue for Either<A, B>
where A: ToNapiValue, B: ToNapiValue,

Source§

impl<A, B, C> ToNapiValue for Either3<A, B, C>

Source§

impl<A, B, C, D> ToNapiValue for Either4<A, B, C, D>

Source§

impl<A, B, C, D, E> ToNapiValue for Either5<A, B, C, D, E>

Source§

impl<A, B, C, D, E, F> ToNapiValue for Either6<A, B, C, D, E, F>

Source§

impl<A, B, C, D, E, F, G> ToNapiValue for Either7<A, B, C, D, E, F, G>

Source§

impl<A, B, C, D, E, F, G, H> ToNapiValue for Either8<A, B, C, D, E, F, G, H>

Source§

impl<A, B, C, D, E, F, G, H, I> ToNapiValue for Either9<A, B, C, D, E, F, G, H, I>

Source§

impl<A, B, C, D, E, F, G, H, I, J> ToNapiValue for Either10<A, B, C, D, E, F, G, H, I, J>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> ToNapiValue for Either11<A, B, C, D, E, F, G, H, I, J, K>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> ToNapiValue for Either12<A, B, C, D, E, F, G, H, I, J, K, L>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> ToNapiValue for Either13<A, B, C, D, E, F, G, H, I, J, K, L, M>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> ToNapiValue for Either14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> ToNapiValue for Either15<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> ToNapiValue for Either16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> ToNapiValue for Either17<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> ToNapiValue for Either18<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> ToNapiValue for Either19<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> ToNapiValue for Either20<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> ToNapiValue for Either21<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> ToNapiValue for Either22<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W> ToNapiValue for Either23<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X> ToNapiValue for Either24<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y> ToNapiValue for Either25<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> ToNapiValue for Either26<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

impl<S: AsRef<str>> ToNapiValue for Error<S>

Source§

impl<T> ToNapiValue for Result<T>
where T: ToNapiValue,

Source§

impl<T: 'static> ToNapiValue for &ExternalRef<T>

Source§

impl<T: 'static> ToNapiValue for Ref<T>

Source§

impl<T: 'static> ToNapiValue for External<T>

Source§

impl<T: 'static> ToNapiValue for ExternalRef<T>

Source§

impl<T: 'static> ToNapiValue for Reference<T>

Source§

impl<T: 'static> ToNapiValue for WeakReference<T>

Source§

impl<T: 'static, S: 'static> ToNapiValue for SharedReference<T, S>

Source§

impl<T: ToNapiValue + 'static> ToNapiValue for AsyncBlock<T>

Source§

impl<T: ToNapiValue> ToNapiValue for CallbackContext<T>

Source§

impl<T: for<'task> ScopedTask<'task>> ToNapiValue for AsyncTask<T>

Source§

impl<const LEAK_CHECK: bool> ToNapiValue for &SymbolRef<LEAK_CHECK>

Source§

impl<const LEAK_CHECK: bool> ToNapiValue for &UnknownRef<LEAK_CHECK>

Source§

impl<const LEAK_CHECK: bool> ToNapiValue for &ObjectRef<LEAK_CHECK>

Source§

impl<const LEAK_CHECK: bool> ToNapiValue for SymbolRef<LEAK_CHECK>

Source§

impl<const LEAK_CHECK: bool> ToNapiValue for UnknownRef<LEAK_CHECK>

Source§

impl<const LEAK_CHECK: bool> ToNapiValue for ObjectRef<LEAK_CHECK>