pub struct CssProperty {
pub name: String,
pub value: String,
pub important: bool,
}Expand description
Re-export core tailwind-rs functionality Represents a CSS property
Fields§
§name: StringProperty name (e.g., “padding”, “background-color”)
value: StringProperty value (e.g., “1rem”, “#3b82f6”)
important: boolWhether the property is marked as !important
Implementations§
Source§impl CssProperty
impl CssProperty
Sourcepub fn new(name: String, value: String) -> CssProperty
pub fn new(name: String, value: String) -> CssProperty
Create a new CSS property
Sourcepub fn new_important(name: String, value: String) -> CssProperty
pub fn new_important(name: String, value: String) -> CssProperty
Create a new CSS property with importance
Trait Implementations§
Source§impl Clone for CssProperty
impl Clone for CssProperty
Source§fn clone(&self) -> CssProperty
fn clone(&self) -> CssProperty
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CssProperty
impl Debug for CssProperty
Source§impl PartialEq for CssProperty
impl PartialEq for CssProperty
impl StructuralPartialEq for CssProperty
Auto Trait Implementations§
impl Freeze for CssProperty
impl RefUnwindSafe for CssProperty
impl Send for CssProperty
impl Sync for CssProperty
impl Unpin for CssProperty
impl UnwindSafe for CssProperty
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