Struct swc_html_parser::lexer::Lexer
source · [−]pub struct Lexer<I> where
I: Input, {
pub last_start_tag_token: Option<Token>,
/* private fields */
}
Fields
last_start_tag_token: Option<Token>
Implementations
Trait Implementations
sourceimpl<I> ParserInput for Lexer<I> where
I: Input,
impl<I> ParserInput for Lexer<I> where
I: Input,
type State = LexerState
fn next(&mut self) -> PResult<TokenAndSpan>
fn start_pos(&mut self) -> BytePos
fn state(&mut self) -> Self::State
fn reset(&mut self, state: &Self::State)
fn take_errors(&mut self) -> Vec<Error>
fn set_adjusted_current_node_to_html_namespace(&mut self, value: bool)
fn set_input_state(&mut self, state: State)
Auto Trait Implementations
impl<I> RefUnwindSafe for Lexer<I> where
I: RefUnwindSafe,
impl<I> Send for Lexer<I> where
I: Send,
impl<I> Sync for Lexer<I> where
I: Sync,
impl<I> Unpin for Lexer<I> where
I: Unpin,
impl<I> UnwindSafe for Lexer<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more