pub trait InspectorOptionsType {
    type DeriveOptions: Default;
    type Options: TypeData;

    fn options_from_derive(options: Self::DeriveOptions) -> Self::Options;
}
Expand description

Helper trait for the InspectorOptions macro.

    #[inspector(min = 0.0, max = 1.0)]
    field: f32

will expand to this:

let mut options = InspectorOptions::default();
let mut field_options =  <f32 as InspectorOptionsType>::DeriveOptions::default();
field_options.min = Into::into(2.0);
field_options.max = Into::into(3.0);
options.insert(
    Target::Field(0usize),
    <f32 as InspectorOptionsType>::options_from_derive(field_options),
);

Required Associated Types§

Can be arbitrary types which will be passed to InspectorEguiImpl like NumberOptions, or nested InspectorOptions which will be passed to children (see impl InspectorOptionsType for Option).

Required Methods§

Implementations on Foreign Types§

Implementors§