pub struct Style {
pub properties: Vec<StyleProperty>,
}Fields§
§properties: Vec<StyleProperty>Implementations§
Source§impl Style
impl Style
pub fn new() -> Style
pub fn display(self, value: String) -> Style
pub fn flex_direction(self, value: String) -> Style
pub fn gap(self, value: String) -> Style
pub fn align_items(self, value: String) -> Style
pub fn justify_content(self, value: String) -> Style
pub fn margin(self, value: String) -> Style
pub fn padding(self, value: String) -> Style
pub fn width(self, value: String) -> Style
pub fn height(self, value: String) -> Style
pub fn min_width(self, value: String) -> Style
pub fn max_width(self, value: String) -> Style
pub fn color(self, value: String) -> Style
pub fn background_color(self, value: String) -> Style
pub fn border_color(self, value: String) -> Style
pub fn border(self, value: String) -> Style
pub fn border_radius(self, value: String) -> Style
pub fn font_size(self, value: String) -> Style
pub fn font_weight(self, value: String) -> Style
pub fn text_align(self, value: String) -> Style
pub fn position(self, value: String) -> Style
pub fn top(self, value: String) -> Style
pub fn right(self, value: String) -> Style
pub fn bottom(self, value: String) -> Style
pub fn left(self, value: String) -> Style
pub fn opacity(self, value: String) -> Style
pub fn box_shadow(self, value: String) -> Style
pub fn cursor(self, value: String) -> Style
pub fn overflow(self, value: String) -> Style
pub fn overflow_x(self, value: String) -> Style
pub fn overflow_y(self, value: String) -> Style
pub fn to_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more