Struct peresil::Point [] [src]

pub struct Point<'a> {
    pub offset: usize,
    pub s: &'a str,
}

Fields

offset: usize s: &'a str

Methods

impl<'a> Point<'a>
[src]

fn to(&self, other: Point<'a>) -> &'a str

fn slice_at(&self, position: usize) -> Progress<'a, &'a str>

fn consume_to<E>(&self, l: Option<usize>) -> Result<'a, &'a str, E>

fn consume_literal<E>(&self, literal: &str) -> Result<'a, &'a str, E>

fn consume_identifier<T, E>(&self, identifiers: &[Identifier<T>]) -> Result<'a, T, E> where T: Clone

Trait Implementations

impl<'a> Copy for Point<'a>
[src]

impl<'a> PartialEq for Point<'a>
[src]

fn eq(&self, __arg_0: &Point<'a>) -> bool

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

fn ne(&self, __arg_0: &Point<'a>) -> bool

This method tests for !=.

impl<'a> Clone for Point<'a>
[src]

fn clone(&self) -> Point<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> Debug for Point<'a>
[src]

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

Formats the value using the given formatter.