pub struct CssTokenizer { /* private fields */ }Expand description
The CSS tokenizer (§4.3).
Holds the preprocessed input stream (§5.3 normalization applied at construction), the current position, and EOF tracking. Sub-algorithms are implemented as methods on this struct so they share the input stream and position.
Implementations§
Source§impl CssTokenizer
impl CssTokenizer
Sourcepub fn new(input: &str) -> CssTokenizer
pub fn new(input: &str) -> CssTokenizer
Construct a new tokenizer over input.
Applies §5.3 input preprocessing: per the “input stream” definition, U+000D CR followed by U+000A LF is collapsed to a single LF, lone CR is replaced with LF, and U+000C FF is replaced with LF. The tokenizer operates on this normalized stream.
Trait Implementations§
Source§impl Tokenizer for CssTokenizer
impl Tokenizer for CssTokenizer
Auto Trait Implementations§
impl Forget for CssTokenizer
impl Freeze for CssTokenizer
impl RefUnwindSafe for CssTokenizer
impl Send for CssTokenizer
impl Sync for CssTokenizer
impl Unpin for CssTokenizer
impl UnsafeUnpin for CssTokenizer
impl UnwindSafe for CssTokenizer
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