Skip to main content

RectStyling

Trait RectStyling 

Source
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§

Source

fn get_background_color(&self) -> &str

Source

fn get_background_opacity(&self) -> f32

Source

fn get_border_radius(&self) -> f32

Source

fn get_padding(&self) -> f32

Source

fn get_margin(&self) -> f32

Source

fn get_height(&self) -> Option<f32>

Source

fn get_width(&self) -> Option<f32>

Source

fn background_color<S: Display>(self, color: S) -> Self

Source

fn background_opacity<I: Into<f64>>(self, opacity: I) -> Self

Source

fn border_radius<I: Into<f64>>(self, radius: I) -> Self

Source

fn padding<I: Into<f64>>(self, padding: I) -> Self

Source

fn margin<I: Into<f64>>(self, margin: I) -> Self

Source

fn height<I: Into<f64>>(self, height: I) -> Self

Sets minimal height.

Source

fn width<I: Into<f64>>(self, width: I) -> Self

Sets minimal width.

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.

Implementors§