[][src]Trait pegtastic_runtime::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> ParseSlice<'input> for str[src]

type Slice = &'input str

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

type Slice = &'input [T]

Loading content...

Implementors

Loading content...