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
fn from_reader(reader: &R) -> Self
fn from_reader(reader: &R) -> Self
Initializes a new span at the current position of the reader.
fn from_reader_with_offset(reader: &R, offset: usize) -> Self
fn from_reader_with_offset(reader: &R, offset: usize) -> Self
Initializes a new span at the current position of the reader with the given offset.