pub enum SxValue {
Integer(i32),
Float(f32),
Percent(f32),
FloatDimension {
value: f32,
unit: String,
},
Dimension {
value: i32,
unit: String,
},
CssLiteral(String),
String(String),
Color(Color),
ThemeToken {
palette: String,
selector: String,
},
ClassVar {
class: String,
var: String,
fallback: Option<Box<SxValue>>,
},
Callback(FnSxValue),
Nested(Sx),
}Expand description
An sx value
Variants§
Integer(i32)
Float(f32)
Percent(f32)
FloatDimension
Dimension
CssLiteral(String)
String(String)
Color(Color)
ThemeToken
ClassVar
Callback(FnSxValue)
Nested(Sx)
Implementations§
Trait Implementations§
impl StructuralPartialEq for SxValue
Auto Trait Implementations§
impl Freeze for SxValue
impl RefUnwindSafe for SxValue
impl Send for SxValue
impl Sync for SxValue
impl Unpin for SxValue
impl UnwindSafe for SxValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.