Trait static_reflect::FieldReflect[][src]

pub unsafe trait FieldReflect: StaticReflect {
    type NamedFieldInfo;

    const NAMED_FIELD_INFO: Self::NamedFieldInfo;
}

A type that supports accessing its fields via reflection.

All fields are assumed to be defined in a way that is compatible with the the C ABI. In other words, the type must be #[repr(C)]

Safety

Implementing this type incorrectly is undefined behavior.

Associated Types

type NamedFieldInfo[src]

A magic structure that can be used to access field info by name

Loading content...

Associated Constants

const NAMED_FIELD_INFO: Self::NamedFieldInfo[src]

Static information on this structure’s fields, where each field’s information is given by name

Loading content...

Implementors

Loading content...