Trait type_info::TypeInfo [] [src]

pub trait TypeInfo: DynamicTypeInfo {
    const TYPE: Type;
    fn field<A>(&self, _id: FieldId) -> Option<&A>
    where
        A: Any
, { ... }
fn field_mut<A>(&mut self, _id: FieldId) -> Option<&mut A>
    where
        A: Any
, { ... } }

A type that has compile-time static type information associated with it.

Associated Constants

The constant statically known type information for this type.

Provided Methods

Get a reference to the value of a field on this type with the given field id.

This method will return the current value of the given field if possible, or None if the given field does not exist or does not have a type matching the supplied type.

Get a mutable reference to the value of a field on this type with the given field id.

This method will return the current value of the given field if possible, or None if the given field does not exist or does not have a type matching the supplied type.

Implementations on Foreign Types

impl TypeInfo for u8
[src]

[src]

[src]

impl TypeInfo for u16
[src]

[src]

[src]

impl TypeInfo for u32
[src]

[src]

[src]

impl TypeInfo for u64
[src]

[src]

[src]

impl TypeInfo for usize
[src]

[src]

[src]

impl TypeInfo for i8
[src]

[src]

[src]

impl TypeInfo for i16
[src]

[src]

[src]

impl TypeInfo for i32
[src]

[src]

[src]

impl TypeInfo for i64
[src]

[src]

[src]

impl TypeInfo for isize
[src]

[src]

[src]

impl TypeInfo for f32
[src]

[src]

[src]

impl TypeInfo for f64
[src]

[src]

[src]

impl TypeInfo for bool
[src]

[src]

[src]

impl TypeInfo for char
[src]

[src]

[src]

Implementors