Trait rune::runtime::TypeOf

source ·
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§

source

fn type_hash() -> Hash

Get full type hash, including type parameters.

source

fn type_info() -> TypeInfo

Access diagnostical information on the value type.

Provided Methods§

source

fn type_of() -> FullTypeOf

Type information for the given type.

source

fn type_parameters() -> Hash

Hash of type parameters.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TypeOf for Ordering

source§

impl TypeOf for bool

source§

impl TypeOf for char

source§

impl TypeOf for f32

source§

impl TypeOf for f64

source§

impl TypeOf for i8

source§

impl TypeOf for i16

source§

impl TypeOf for i32

source§

impl TypeOf for i64

source§

impl TypeOf for i128

source§

impl TypeOf for isize

source§

impl TypeOf for str

source§

impl TypeOf for u8

source§

impl TypeOf for u16

source§

impl TypeOf for u32

source§

impl TypeOf for u64

source§

impl TypeOf for u128

source§

impl TypeOf for ()

source§

impl TypeOf for usize

source§

impl TypeOf for String

source§

impl TypeOf for ParseCharError

source§

impl TypeOf for Error

source§

impl TypeOf for ParseFloatError

source§

impl TypeOf for ParseIntError

source§

impl TypeOf for Utf8Error

source§

impl TypeOf for Error

source§

impl TypeOf for Error

source§

impl TypeOf for [Value]

source§

impl TypeOf for [u8]

source§

impl<A> TypeOf for (A,)

source§

impl<A, B> TypeOf for (A, B)

source§

impl<A, B, C> TypeOf for (A, B, C)

source§

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)

source§

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)

source§

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)

source§

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)

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)

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)

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)

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)

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)

source§

impl<C, B> TypeOf for ControlFlow<C, B>

source§

impl<T> TypeOf for Option<T>

source§

impl<T> TypeOf for &T
where T: ?Sized + TypeOf,

Blanket implementation for references.

source§

impl<T> TypeOf for &mut T
where T: ?Sized + TypeOf,

Blanket implementation for mutable references.

source§

impl<T> TypeOf for Vec<T>

source§

impl<T> TypeOf for HashMap<String, T>

source§

impl<T> TypeOf for HashMap<String, T>

source§

impl<T, E> TypeOf for Result<T, E>

Implementors§

source§

impl TypeOf for rune::runtime::ControlFlow

source§

impl TypeOf for GeneratorState

source§

impl TypeOf for FromUtf8Error

source§

impl TypeOf for rune::alloc::String

source§

impl TypeOf for Bencher

source§

impl TypeOf for Format

source§

impl TypeOf for Bytes

source§

impl TypeOf for Formatter

source§

impl TypeOf for Function

source§

impl TypeOf for Future

source§

impl TypeOf for Hasher

source§

impl TypeOf for Iterator

source§

impl TypeOf for Object

source§

impl TypeOf for OwnedTuple

source§

impl TypeOf for Range

source§

impl TypeOf for RangeFrom

source§

impl TypeOf for RangeFull

source§

impl TypeOf for RangeInclusive

source§

impl TypeOf for RangeTo

source§

impl TypeOf for RangeToInclusive

source§

impl TypeOf for Struct

source§

impl TypeOf for Tuple

source§

impl TypeOf for Type

source§

impl TypeOf for rune::runtime::Vec

source§

impl<T> TypeOf for rune::alloc::HashMap<String, T>

source§

impl<T> TypeOf for rune::alloc::HashMap<String, T>

source§

impl<T> TypeOf for rune::alloc::Vec<T>

source§

impl<T> TypeOf for Generator<T>
where T: AsRef<Vm> + AsMut<Vm>,

source§

impl<T> TypeOf for Mut<T>
where T: ?Sized + TypeOf,

Blanket implementation for owned mutable references.

source§

impl<T> TypeOf for Ref<T>
where T: ?Sized + TypeOf,

Blanket implementation for owned references.

source§

impl<T> TypeOf for Shared<T>
where T: ?Sized + TypeOf,

Blanket implementation for owned shared values.

source§

impl<T> TypeOf for Stream<T>
where T: AsRef<Vm> + AsMut<Vm>,

source§

impl<T> TypeOf for VecTuple<T>