pub trait UiComponent {
// Required method
fn render(self) -> UiElement;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
pub trait UiComponent {
// Required method
fn render(self) -> UiElement;
}This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".