pub trait SettingFieldElement {
type Element: IntoElement + 'static;
// Required method
fn render_field(
&self,
options: &RenderOptions,
window: &mut Window,
cx: &mut App,
) -> Self::Element;
}Expand description
A trait for rendering custom setting field elements.
For crate::setting::SettingField::element method.
Required Associated Types§
type Element: IntoElement + 'static
Required Methods§
fn render_field( &self, options: &RenderOptions, window: &mut Window, cx: &mut App, ) -> Self::Element
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".