[][src]Trait mun_runtime::ArgumentReflection

pub trait ArgumentReflection: Sized {
    type Marshalled: Marshal<Self>;
    fn type_guid(&self, runtime: &Runtime) -> Guid;
fn type_name<'r>(&'r self, runtime: &'r Runtime) -> &'r str;
fn marshal(self) -> Self::Marshalled; }

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

Associated Types

type Marshalled: Marshal<Self>

The resulting type after dereferencing.

Loading content...

Required methods

fn type_guid(&self, runtime: &Runtime) -> Guid

Retrieves the Guid of the value's type.

fn type_name<'r>(&'r self, runtime: &'r Runtime) -> &'r str

Retrieves the name of the value's type.

fn marshal(self) -> Self::Marshalled

Marshals the value.

Loading content...

Implementations on Foreign Types

impl ArgumentReflection for i8[src]

type Marshalled = Self

impl ArgumentReflection for i16[src]

type Marshalled = Self

impl ArgumentReflection for i32[src]

type Marshalled = Self

impl ArgumentReflection for i64[src]

type Marshalled = Self

impl ArgumentReflection for i128[src]

type Marshalled = Self

impl ArgumentReflection for isize[src]

type Marshalled = Self

impl ArgumentReflection for u8[src]

type Marshalled = Self

impl ArgumentReflection for u16[src]

type Marshalled = Self

impl ArgumentReflection for u32[src]

type Marshalled = Self

impl ArgumentReflection for u64[src]

type Marshalled = Self

impl ArgumentReflection for u128[src]

type Marshalled = Self

impl ArgumentReflection for usize[src]

type Marshalled = Self

impl ArgumentReflection for f32[src]

type Marshalled = Self

impl ArgumentReflection for f64[src]

type Marshalled = Self

impl ArgumentReflection for bool[src]

type Marshalled = Self

impl<T> ArgumentReflection for *const T where
    *const T: HasStaticTypeInfo
[src]

type Marshalled = Self

impl<T> ArgumentReflection for *mut T where
    *mut T: HasStaticTypeInfo
[src]

type Marshalled = Self

Loading content...

Implementors

impl ArgumentReflection for StructRef[src]

type Marshalled = RawStruct

Loading content...