Trait components::ui::immediate::InspectRenderDefault
source · [−]pub trait InspectRenderDefault<T> {
fn render(
data: &[&T],
label: &'static str,
ui: &mut Ui,
args: &InspectArgsDefault
);
fn render_mut(
data: &mut [&mut T],
label: &'static str,
ui: &mut Ui,
args: &InspectArgsDefault
) -> bool;
}
Expand description
Renders a value using the default widget
Required Methods
Render the element in an immutable way (i.e. static text)
fn render_mut(
data: &mut [&mut T],
label: &'static str,
ui: &mut Ui,
args: &InspectArgsDefault
) -> bool
fn render_mut(
data: &mut [&mut T],
label: &'static str,
ui: &mut Ui,
args: &InspectArgsDefault
) -> bool
Render the element in a mutable way. Using this trait, the default widget to use is based on the type.