pub trait RectStyling {
Show 14 methods
// Required methods
fn get_background_color(&self) -> &str;
fn get_background_opacity(&self) -> f32;
fn get_border_radius(&self) -> f32;
fn get_padding(&self) -> f32;
fn get_margin(&self) -> f32;
fn get_height(&self) -> Option<f32>;
fn get_width(&self) -> Option<f32>;
fn background_color<S: Display>(self, color: S) -> Self;
fn background_opacity<I: Into<f64>>(self, opacity: I) -> Self;
fn border_radius<I: Into<f64>>(self, radius: I) -> Self;
fn padding<I: Into<f64>>(self, padding: I) -> Self;
fn margin<I: Into<f64>>(self, margin: I) -> Self;
fn height<I: Into<f64>>(self, height: I) -> Self;
fn width<I: Into<f64>>(self, width: I) -> Self;
}Required Methods§
fn get_background_color(&self) -> &str
fn get_background_opacity(&self) -> f32
fn get_border_radius(&self) -> f32
fn get_padding(&self) -> f32
fn get_margin(&self) -> f32
fn get_height(&self) -> Option<f32>
fn get_width(&self) -> Option<f32>
fn background_color<S: Display>(self, color: S) -> Self
fn background_opacity<I: Into<f64>>(self, opacity: I) -> Self
fn border_radius<I: Into<f64>>(self, radius: I) -> Self
fn padding<I: Into<f64>>(self, padding: I) -> Self
fn margin<I: Into<f64>>(self, margin: I) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.