pub enum StyleValue {
Number(f64, Span),
Name(Vec<Ident>),
Text(String, Span),
Call {
name: Ident,
args: Vec<StyleArg>,
},
Sum(Vec<StyleValue>),
}Expand description
A property value: a number, a name such as accent or fill.subtle,
text, a call such as scale(1.03, snappy), or effects joined by +.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for StyleValue
impl Clone for StyleValue
Source§impl Debug for StyleValue
impl Debug for StyleValue
Source§impl Parse for StyleValue
impl Parse for StyleValue
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for StyleValue
impl !Sync for StyleValue
impl Freeze for StyleValue
impl RefUnwindSafe for StyleValue
impl Unpin for StyleValue
impl UnsafeUnpin for StyleValue
impl UnwindSafe for StyleValue
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