Trait html5tokenizer::spans::Span[][src]

pub trait Span<R>: Default + Clone {
    fn from_reader(reader: &R) -> Self;
fn from_reader_with_offset(reader: &R, offset: usize) -> Self;
fn push_str(&mut self, str: &str); }
Expand description

Represents a character range in the source code.

Required methods

Initializes a new span at the current position of the reader.

Initializes a new span at the current position of the reader with the given offset.

Extends the span by the length of the given string.

Implementations on Foreign Types

Implementors