pub enum StyleVal {
Color(Color),
Gradient(Gradient),
Brush(Brush),
Float(f32),
Int(i32),
UInt(u32),
Bool(bool),
}Expand description
A style value.
Variants§
Color(Color)
A color style value.
Gradient(Gradient)
A gradient style value.
Brush(Brush)
A brush style value.
Float(f32)
A float style value.
Int(i32)
An int style value.
UInt(u32)
An unsized int style value.
Bool(bool)
A bool style value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StyleVal
impl !RefUnwindSafe for StyleVal
impl Send for StyleVal
impl Sync for StyleVal
impl Unpin for StyleVal
impl !UnwindSafe for StyleVal
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