pub trait TypeOf {
// Required methods
fn type_hash() -> Hash;
fn type_info() -> TypeInfo;
// Provided methods
fn type_of() -> FullTypeOf { ... }
fn type_parameters() -> Hash { ... }
}
Expand description
Trait used for Rust types for which we can determine the runtime type of.
Required Methods§
Provided Methods§
sourcefn type_of() -> FullTypeOf
fn type_of() -> FullTypeOf
Type information for the given type.
sourcefn type_parameters() -> Hash
fn type_parameters() -> Hash
Hash of type parameters.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl TypeOf for ParseCharError
impl TypeOf for ParseCharError
source§impl TypeOf for ParseFloatError
impl TypeOf for ParseFloatError
source§impl TypeOf for ParseIntError
impl TypeOf for ParseIntError
source§impl<A, B, C, D> TypeOf for (A, B, C, D)
impl<A, B, C, D> TypeOf for (A, B, C, D)
source§impl<A, B, C, D, E> TypeOf for (A, B, C, D, E)
impl<A, B, C, D, E> TypeOf for (A, B, C, D, E)
source§impl<A, B, C, D, E, F> TypeOf for (A, B, C, D, E, F)
impl<A, B, C, D, E, F> TypeOf for (A, B, C, D, E, F)
source§impl<A, B, C, D, E, F, G> TypeOf for (A, B, C, D, E, F, G)
impl<A, B, C, D, E, F, G> TypeOf for (A, B, C, D, E, F, G)
source§impl<A, B, C, D, E, F, G, H> TypeOf for (A, B, C, D, E, F, G, H)
impl<A, B, C, D, E, F, G, H> TypeOf for (A, B, C, D, E, F, G, H)
source§impl<A, B, C, D, E, F, G, H, I> TypeOf for (A, B, C, D, E, F, G, H, I)
impl<A, B, C, D, E, F, G, H, I> TypeOf for (A, B, C, D, E, F, G, H, I)
source§impl<A, B, C, D, E, F, G, H, I, J> TypeOf for (A, B, C, D, E, F, G, H, I, J)
impl<A, B, C, D, E, F, G, H, I, J> TypeOf for (A, B, C, D, E, F, G, H, I, J)
source§impl<A, B, C, D, E, F, G, H, I, J, K> TypeOf for (A, B, C, D, E, F, G, H, I, J, K)
impl<A, B, C, D, E, F, G, H, I, J, K> TypeOf for (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> TypeOf for (A, B, C, D, E, F, G, H, I, J, K, L)
impl<A, B, C, D, E, F, G, H, I, J, K, L> TypeOf for (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> TypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M)
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> TypeOf for (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> TypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> TypeOf for (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> TypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> TypeOf for (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> TypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> TypeOf for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)
source§impl<C, B> TypeOf for ControlFlow<C, B>
impl<C, B> TypeOf for ControlFlow<C, B>
Implementors§
impl TypeOf for rune::runtime::ControlFlow
impl TypeOf for GeneratorState
impl TypeOf for FromUtf8Error
impl TypeOf for rune::alloc::String
impl TypeOf for Bencher
impl TypeOf for Format
impl TypeOf for Bytes
impl TypeOf for Formatter
impl TypeOf for Function
impl TypeOf for Future
impl TypeOf for Hasher
impl TypeOf for Iterator
impl TypeOf for Object
impl TypeOf for OwnedTuple
impl TypeOf for Range
impl TypeOf for RangeFrom
impl TypeOf for RangeFull
impl TypeOf for RangeInclusive
impl TypeOf for RangeTo
impl TypeOf for RangeToInclusive
impl TypeOf for Struct
impl TypeOf for Tuple
impl TypeOf for Type
impl TypeOf for rune::runtime::Vec
impl<T> TypeOf for rune::alloc::HashMap<String, T>
impl<T> TypeOf for rune::alloc::HashMap<String, T>
impl<T> TypeOf for rune::alloc::Vec<T>
impl<T> TypeOf for Generator<T>
impl<T> TypeOf for Mut<T>
Blanket implementation for owned mutable references.
impl<T> TypeOf for Ref<T>
Blanket implementation for owned references.
Blanket implementation for owned shared values.