pub struct AtRule<'a, B = SimpleBlock<'a>> {
pub name: Cow<'a, str>,
pub prelude: Vec<ComponentValue<'a>>,
pub block: Option<B>,
pub span: Span,
}Expand description
@name prelude; or @name prelude { block }.
B is what the {} block is kept as: a SimpleBlock, unparsed,
from parse_stylesheet and the other entry points, or a Block,
its contents parsed, from [parse_stylesheet_deep].
Fields§
§name: Cow<'a, str>§prelude: Vec<ComponentValue<'a>>§block: Option<B>The {} block. Unparsed, what it holds depends on the rule, so
SimpleBlock::contents parses it when the rule calls for that.
span: SpanTrait Implementations§
impl<'a, B> StructuralPartialEq for AtRule<'a, B>where
B: PartialEq,
Auto Trait Implementations§
impl<'a, B> Forget for AtRule<'a, B>
impl<'a, B> Freeze for AtRule<'a, B>
impl<'a, B> Move for AtRule<'a, B>
impl<'a, B> RefUnwindSafe for AtRule<'a, B>where
Option<B>: RefUnwindSafe,
impl<'a, B> Send for AtRule<'a, B>
impl<'a, B> Sync for AtRule<'a, B>
impl<'a, B> Unpin for AtRule<'a, B>
impl<'a, B> UnsafeUnpin for AtRule<'a, B>where
Option<B>: UnsafeUnpin,
impl<'a, B> UnwindSafe for AtRule<'a, B>where
Option<B>: UnwindSafe,
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