Struct htmlstream::Position [] [src]

pub struct Position {
    pub start: usize,
    pub end: usize,
}

The HTML source position

Examples

let pos = Position {
    start: 0,
    end: 10,
};

Fields

start: usize end: usize

Trait Implementations

impl PartialEq for Position
[src]

fn eq(&self, __arg_0: &Position) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Position) -> bool

This method tests for !=.

impl Debug for Position
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.