pub trait EnumReflect {
const MEMBER_NAMES: &'static [&'static str];
const MEMBER_TYPES: &'static [StructType];
// Required method
fn get_index_of_member(member_name: &str) -> Result<usize, ReflectError>;
}
Required Associated Constants§
const MEMBER_NAMES: &'static [&'static str]
const MEMBER_TYPES: &'static [StructType]
Required Methods§
fn get_index_of_member(member_name: &str) -> Result<usize, ReflectError>
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.