pub trait TypeName {
    // Required methods
    fn type_name() -> &'static str;
    fn value_type() -> ValueType;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TypeName for &str

source§

impl TypeName for &[f32]

source§

impl TypeName for &[f64]

source§

impl TypeName for &[i8]

source§

impl TypeName for &[i16]

source§

impl TypeName for &[i32]

source§

impl TypeName for &[i64]

source§

impl TypeName for &[u8]

source§

impl TypeName for &[u16]

source§

impl TypeName for &[u32]

source§

impl TypeName for &[u64]

source§

impl TypeName for &mut [f32]

source§

impl TypeName for &mut [f64]

source§

impl TypeName for &mut [i8]

source§

impl TypeName for &mut [i16]

source§

impl TypeName for &mut [i32]

source§

impl TypeName for &mut [i64]

source§

impl TypeName for &mut [u8]

source§

impl TypeName for &mut [u16]

source§

impl TypeName for &mut [u32]

source§

impl TypeName for &mut [u64]

source§

impl TypeName for bool

source§

impl TypeName for f64

source§

impl TypeName for i8

source§

impl TypeName for i16

source§

impl TypeName for i32

source§

impl TypeName for i64

source§

impl TypeName for u8

source§

impl TypeName for u16

source§

impl TypeName for u32

source§

impl TypeName for String

source§

impl TypeName for DateTime<Utc>

source§

impl<K, V> TypeName for BTreeMap<K, V>

source§

impl<K, V, S> TypeName for HashMap<K, V, S>

source§

impl<K, V, S> TypeName for IndexMap<K, V, S>

source§

impl<T0: FromNapiValue, T1: FromNapiValue> TypeName for (T0, T1)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue> TypeName for (T0, T1, T2)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue> TypeName for (T0, T1, T2, T3)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue> TypeName for (T0, T1, T2, T3, T4)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue, T8: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue, T8: FromNapiValue, T9: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue, T8: FromNapiValue, T9: FromNapiValue, T10: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue, T8: FromNapiValue, T9: FromNapiValue, T10: FromNapiValue, T11: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue, T8: FromNapiValue, T9: FromNapiValue, T10: FromNapiValue, T11: FromNapiValue, T12: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue, T8: FromNapiValue, T9: FromNapiValue, T10: FromNapiValue, T11: FromNapiValue, T12: FromNapiValue, T13: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue, T8: FromNapiValue, T9: FromNapiValue, T10: FromNapiValue, T11: FromNapiValue, T12: FromNapiValue, T13: FromNapiValue, T14: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

source§

impl<T0: FromNapiValue, T1: FromNapiValue, T2: FromNapiValue, T3: FromNapiValue, T4: FromNapiValue, T5: FromNapiValue, T6: FromNapiValue, T7: FromNapiValue, T8: FromNapiValue, T9: FromNapiValue, T10: FromNapiValue, T11: FromNapiValue, T12: FromNapiValue, T13: FromNapiValue, T14: FromNapiValue, T15: FromNapiValue> TypeName for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

impl<T> TypeName for Vec<T>

source§

impl<T: TypeName> TypeName for Option<T>

source§

impl<T: TypeName> TypeName for Rc<T>

source§

impl<T: TypeName> TypeName for Arc<T>

source§

impl<T: TypeName> TypeName for Mutex<T>

Implementors§

source§

impl TypeName for JsArrayBuffer

source§

impl TypeName for JsBigInt

source§

impl TypeName for JsBoolean

source§

impl TypeName for JsBuffer

source§

impl TypeName for JsDataView

source§

impl TypeName for JsDate

source§

impl TypeName for JsExternal

source§

impl TypeName for JsFunction

source§

impl TypeName for JsNull

source§

impl TypeName for JsNumber

source§

impl TypeName for JsString

source§

impl TypeName for JsSymbol

source§

impl TypeName for JsTypedArray

source§

impl TypeName for JsUndefined

source§

impl TypeName for UnknownReturnValue

source§

impl TypeName for Latin1String

source§

impl TypeName for Array

source§

impl TypeName for BigInt64Array

source§

impl TypeName for BigInt

source§

impl TypeName for BigUint64Array

source§

impl TypeName for Buffer

source§

impl TypeName for BufferSlice<'_>

source§

impl TypeName for Float32Array

source§

impl TypeName for Float64Array

source§

impl TypeName for Int8Array

source§

impl TypeName for Int16Array

source§

impl TypeName for Int32Array

source§

impl TypeName for Null

source§

impl TypeName for Symbol

source§

impl TypeName for Uint8Array

source§

impl TypeName for Uint8ClampedArray

source§

impl TypeName for Uint8ClampedSlice<'_>

source§

impl TypeName for Uint16Array

source§

impl TypeName for Uint32Array

source§

impl TypeName for JsUnknown

source§

impl TypeName for Utf16String

source§

impl TypeName for Object

source§

impl TypeName for Undefined

source§

impl<'scope, Args: JsValuesTupleIntoVec, Return: FromNapiValue> TypeName for Function<'scope, Args, Return>

source§

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

source§

impl<A, B, C> TypeName for Either3<A, B, C>
where A: TypeName, B: TypeName, C: TypeName,

source§

impl<A, B, C, D> TypeName for Either4<A, B, C, D>
where A: TypeName, B: TypeName, C: TypeName, D: TypeName,

source§

impl<A, B, C, D, E> TypeName for Either5<A, B, C, D, E>
where A: TypeName, B: TypeName, C: TypeName, D: TypeName, E: TypeName,

source§

impl<A, B, C, D, E, F> TypeName for Either6<A, B, C, D, E, F>
where A: TypeName, B: TypeName, C: TypeName, D: TypeName, E: TypeName, F: TypeName,

source§

impl<A, B, C, D, E, F, G> TypeName for Either7<A, B, C, D, E, F, G>
where A: TypeName, B: TypeName, C: TypeName, D: TypeName, E: TypeName, F: TypeName, G: TypeName,

source§

impl<A, B, C, D, E, F, G, H> TypeName for Either8<A, B, C, D, E, F, G, H>
where A: TypeName, B: TypeName, C: TypeName, D: TypeName, E: TypeName, F: TypeName, G: TypeName, H: TypeName,

source§

impl<A, B, C, D, E, F, G, H, I> TypeName for Either9<A, B, C, D, E, F, G, H, I>
where A: TypeName, B: TypeName, C: TypeName, D: TypeName, E: TypeName, F: TypeName, G: TypeName, H: TypeName, I: TypeName,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> TypeName 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> TypeName 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> TypeName 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> TypeName 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> TypeName 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> TypeName 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> TypeName 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> TypeName 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> TypeName 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> TypeName 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> TypeName 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<Args: JsValuesTupleIntoVec, Return: FromNapiValue> TypeName for FunctionRef<Args, Return>

source§

impl<T: 'static> TypeName for ClassInstance<T>

source§

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

source§

impl<T: Task> TypeName for T

source§

impl<T: FromNapiValue> TypeName for Promise<T>