pub enum TcssValue {
Show 20 variants
Dimension(TcssDimension),
Color(TcssColor),
Border(BorderStyle),
BorderWithColor(BorderStyle, TcssColor),
Display(TcssDisplay),
TextAlign(TextAlign),
Overflow(Overflow),
Visibility(Visibility),
Float(f32),
String(String),
Bool(bool),
DockEdge(DockEdge),
LayoutDirection(LayoutDirection),
Sides(Sides<f32>),
Dimensions(Vec<TcssDimension>),
BorderWithVariable(BorderStyle, String),
Variable(String),
Hatch(HatchStyle),
Keyline(TcssColor),
KeylineVariable(String),
}Expand description
A parsed CSS property value before or after theme variable resolution.
Variants§
Dimension(TcssDimension)
A sizing dimension (length, percent, fraction, or auto).
Color(TcssColor)
A resolved RGB/RGBA color.
Border(BorderStyle)
A border style without an explicit color.
BorderWithColor(BorderStyle, TcssColor)
Border style + color shorthand (e.g. “border: solid #4a4a5a”)
Display(TcssDisplay)
A display mode value.
TextAlign(TextAlign)
A text alignment value.
Overflow(Overflow)
An overflow behavior value.
Visibility(Visibility)
A visibility value.
Float(f32)
A bare floating-point number (opacity, flex-grow, padding cell count).
String(String)
A quoted string value.
Bool(bool)
A boolean flag value.
DockEdge(DockEdge)
A dock-edge placement value.
LayoutDirection(LayoutDirection)
A layout direction value.
Sides(Sides<f32>)
Shorthand with all 4 sides (padding/margin with 2+ values)
Dimensions(Vec<TcssDimension>)
List of dimensions (grid-template-columns/rows)
BorderWithVariable(BorderStyle, String)
Border style + unresolved theme variable (e.g. “border: tall $primary”). Resolved to BorderWithColor during cascade via Theme::resolve().
Variable(String)
Unresolved theme variable reference (e.g., “primary”, “accent-darken-1”). Stored during parsing, resolved to Color during cascade via Theme::resolve().
Hatch(HatchStyle)
Hatch pattern fill (e.g., “hatch: cross”)
Keyline(TcssColor)
Keyline separator color between grid children (e.g., “keyline: $primary”)
KeylineVariable(String)
Keyline with unresolved theme variable
Trait Implementations§
impl StructuralPartialEq for TcssValue
Auto Trait Implementations§
impl Freeze for TcssValue
impl RefUnwindSafe for TcssValue
impl Send for TcssValue
impl Sync for TcssValue
impl Unpin for TcssValue
impl UnsafeUnpin for TcssValue
impl UnwindSafe for TcssValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more