pub struct Declaration<'a> {
pub span: Span,
pub name: InterpolableIdent<'a>,
pub name_prefix: Option<char>,
pub name_suffix: Option<char>,
pub colon_span: Span,
pub value: Vec<'a, ComponentValue<'a>>,
pub value_is_raw: bool,
pub important: Option<ImportantAnnotation<'a>>,
pub less_property_merge: Option<LessPropertyMerge>,
}Fields§
§span: Span§name: InterpolableIdent<'a>§name_prefix: Option<char>Scss / Less only: the IE * hack prefix (*color: red).
In Css the sigil is part of the postcss property name (README “Acceptance”).
name_suffix: Option<char>§colon_span: Span§value: Vec<'a, ComponentValue<'a>>§value_is_raw: boolThe typed <declaration-value> grammar did not read all of value,
so it is the raw token run: a custom property or progid: filter
(any syntax; Scss reads a custom property as text like dart-sass),
or Css’s <any-value> fallback for a normal property.
important: Option<ImportantAnnotation<'a>>§less_property_merge: Option<LessPropertyMerge>Implementations§
Trait Implementations§
Source§impl<'a> Debug for Declaration<'a>
impl<'a> Debug for Declaration<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Declaration<'a>
impl<'a> !Send for Declaration<'a>
impl<'a> !UnwindSafe for Declaration<'a>
impl<'a> Freeze for Declaration<'a>
impl<'a> Sync for Declaration<'a>
impl<'a> Unpin for Declaration<'a>
impl<'a> UnsafeUnpin for Declaration<'a>
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