pub trait InspectRenderDefault<T> {
// Required methods
fn render(
data: &[&T],
label: &'static str,
ui: &Ui<'_>,
args: &InspectArgsDefault,
);
fn render_mut(
data: &mut [&mut T],
label: &'static str,
ui: &Ui<'_>,
args: &InspectArgsDefault,
) -> bool;
}Expand description
Renders a value using the default widget
Required Methods§
Sourcefn render(
data: &[&T],
label: &'static str,
ui: &Ui<'_>,
args: &InspectArgsDefault,
)
fn render( data: &[&T], label: &'static str, ui: &Ui<'_>, args: &InspectArgsDefault, )
Render the element in an immutable way (i.e. static text)
(Hopefully in the future this can be better. See https://github.com/ocornut/imgui/issues/211)
Sourcefn render_mut(
data: &mut [&mut T],
label: &'static str,
ui: &Ui<'_>,
args: &InspectArgsDefault,
) -> bool
fn render_mut( data: &mut [&mut T], label: &'static str, ui: &Ui<'_>, args: &InspectArgsDefault, ) -> bool
Render the element in a mutable way. Using this trait, the default widget to use is based on the type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".