ArgumentReflection

Trait ArgumentReflection 

Source
pub trait ArgumentReflection: Sized {
    // Required method
    fn type_info(&self, runtime: &Runtime) -> Type;
}
Expand description

A type to emulate dynamic typing across compilation units for statically typed values.

Required Methods§

Source

fn type_info(&self, runtime: &Runtime) -> Type

Retrieves the argument’s type information.

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 ArgumentReflection for bool

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for f32

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for f64

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for i8

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for i16

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for i32

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for i64

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for i128

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for isize

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for u8

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for u16

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for u32

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for u64

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for u128

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for ()

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl ArgumentReflection for usize

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl<T> ArgumentReflection for *const T

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Source§

impl<T> ArgumentReflection for *mut T

Source§

fn type_info(&self, _runtime: &Runtime) -> Type

Implementors§