pub trait BaseControl: Send + ControlAsAny {
// Required methods
fn clone_boxed(&self) -> Box<dyn Control>;
fn type_name(&self) -> &'static str;
fn id(&self) -> Uuid;
fn self_size(&self) -> usize;
}Expand description
Required Methods§
Sourcefn clone_boxed(&self) -> Box<dyn Control>
fn clone_boxed(&self) -> Box<dyn Control>
Returns the exact copy of the widget in “type-erased” form.
fn id(&self) -> Uuid
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".