pub trait Sizable: Sized {
// Required method
fn control_size(self, size: ControlSize) -> Self;
// Provided methods
fn xs(self) -> Self { ... }
fn small(self) -> Self { ... }
fn medium(self) -> Self { ... }
fn large(self) -> Self { ... }
}Expand description
A control that resolves its metrics from the token control scale.
Required Methods§
fn control_size(self, size: ControlSize) -> Self
Provided Methods§
fn xs(self) -> Self
fn small(self) -> Self
fn medium(self) -> Self
fn large(self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".