pub trait MeasuredComponent<State, Msg>: Component<State, Msg> {
// Required method
fn measure(&self) -> Size;
}Expand description
A Component that can report its preferred size before rendering.
Layout containers use this small core contract without depending on a specific component module.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".