pub trait Styleable: Sized {
// Required methods
fn fill_width(self) -> Self;
fn fill_height(self) -> Self;
fn fit(self) -> Self;
fn hit_testable(self, on: bool) -> Self;
fn padding(self, padding: impl Into<Edges>) -> Self;
// Provided methods
fn fill_size(self) -> Self { ... }
fn padding_xy(self, x: f32, y: f32) -> Self { ... }
}Required Methods§
fn fill_width(self) -> Self
fn fill_height(self) -> Self
fn fit(self) -> Self
fn hit_testable(self, on: bool) -> Self
fn padding(self, padding: impl Into<Edges>) -> Self
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".