Trait neure::iter::IndexBySpan

source ·
pub trait IndexBySpan {
    type Output: ?Sized;

    // Required method
    fn get_by_span(&self, span: &Span) -> Option<&Self::Output>;
}

Required Associated Types§

Required Methods§

source

fn get_by_span(&self, span: &Span) -> Option<&Self::Output>

Implementations on Foreign Types§

source§

impl IndexBySpan for [u8]

§

type Output = [u8]

source§

fn get_by_span(&self, span: &Span) -> Option<&Self::Output>

source§

impl<'a> IndexBySpan for &'a [u8]

§

type Output = [u8]

source§

fn get_by_span(&self, span: &Span) -> Option<&Self::Output>

source§

impl IndexBySpan for str

§

type Output = str

source§

fn get_by_span(&self, span: &Span) -> Option<&Self::Output>

source§

impl IndexBySpan for Vec<u8>

§

type Output = [u8]

source§

fn get_by_span(&self, span: &Span) -> Option<&Self::Output>

source§

impl<'a> IndexBySpan for &'a str

§

type Output = str

source§

fn get_by_span(&self, span: &Span) -> Option<&Self::Output>

source§

impl<'a> IndexBySpan for &'a Vec<u8>

§

type Output = [u8]

source§

fn get_by_span(&self, span: &Span) -> Option<&Self::Output>

Implementors§