pub trait BaseControl: Send + Downcast {
// Required methods
fn clone_boxed(&self) -> Box<dyn Control<Target = Widget>>;
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<Target = Widget>>
fn clone_boxed(&self) -> Box<dyn Control<Target = Widget>>
Returns the exact copy of the widget in “type-erased” form.