Type Definition lightningcss::selector::SelectorList

source ·
pub type SelectorList<'i> = SelectorList<'i, Selectors>;
Expand description

A list of selectors.

Trait Implementations§

source§

impl<'i> ParseWithOptions<'i> for SelectorList<'i>

source§

fn parse_with_options<'t>( input: &mut Parser<'i, 't>, options: &ParserOptions<'_, 'i> ) -> Result<Self, ParseError<'i, ParserError<'i>>>

Parse a value of this type with the given options.
source§

fn parse_string_with_options( input: &'i str, options: ParserOptions<'_, 'i> ) -> Result<Self, ParseError<'i, ParserError<'i>>>

Parse a value from a string with the given options.
source§

impl<'a, 'i> ToCss for SelectorList<'i>

source§

fn to_css<W>( &self, dest: &mut Printer<'_, '_, '_, W> ) -> Result<(), PrinterError>where W: Write,

Serialize self in CSS syntax, writing to dest.
source§

fn to_css_string( &self, options: PrinterOptions<'_> ) -> Result<String, PrinterError>

Serialize self in CSS syntax and return a string. Read more
source§

impl<'i, T: Visit<'i, T, V>, V: Visitor<'i, T>> Visit<'i, T, V> for SelectorList<'i>

Available on crate feature visitor only.
source§

const CHILD_TYPES: VisitTypes = VisitTypes::SELECTORS

The types of values contained within this value and its children. This is used to skip branches that don’t have any values requested by the Visitor.
source§

fn visit(&mut self, visitor: &mut V) -> Result<(), V::Error>

Visits the value by calling an appropriate method on the Visitor. If no corresponding visitor method exists, then the children are visited.
source§

fn visit_children(&mut self, visitor: &mut V) -> Result<(), V::Error>

Visit the children of this value.