[][src]Trait peg::ParseSlice

pub trait ParseSlice<'input>: Parse {
    type Slice;
    fn parse_slice(&'input self, p1: usize, p2: usize) -> Self::Slice;
}

A parser input type supporting the $() syntax.

Associated Types

type Slice

Type of a slice of the input.

Loading content...

Required methods

fn parse_slice(&'input self, p1: usize, p2: usize) -> Self::Slice

Get a slice of input.

Loading content...

Implementations on Foreign Types

impl<'input, T> ParseSlice<'input> for [T] where
    T: 'input, 
[src]

type Slice = &'input [T]

impl<'input> ParseSlice<'input> for str[src]

type Slice = &'input str

Loading content...

Implementors

Loading content...