pub trait LayoutItem: Component {
// Required method
fn layout_node(&self) -> NodeId;
}Required Methods§
fn layout_node(&self) -> NodeId
Trait Implementations§
Source§impl Component for Box<dyn LayoutItem>
impl Component for Box<dyn LayoutItem>
fn view(&self) -> RenderNode
fn on_event(&mut self, event: &Event) -> EventResult
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Human-readable widget type name for the devtools tree inspector.
Source§impl LayoutItem for Box<dyn LayoutItem>
impl LayoutItem for Box<dyn LayoutItem>
fn layout_node(&self) -> NodeId
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".