Trait srclang::parser::src::__ToTriple

pub trait __ToTriple<'input, 'err> {
    // Required method
    fn to_triple(
        value: Self
    ) -> Result<(Location, Token<'input>, Location), ParseError<Location, Token<'input>, &'static str>>;
}

Required Methods

fn to_triple( value: Self ) -> Result<(Location, Token<'input>, Location), ParseError<Location, Token<'input>, &'static str>>

Object Safety

This trait is not object safe.

Implementations on Foreign Types

impl<'input, 'err> __ToTriple<'input, 'err> for (Location, Token<'input>, Location)

fn to_triple( value: Self ) -> Result<(Location, Token<'input>, Location), ParseError<Location, Token<'input>, &'static str>>

impl<'input, 'err> __ToTriple<'input, 'err> for Result<(Location, Token<'input>, Location), &'static str>

fn to_triple( value: Self ) -> Result<(Location, Token<'input>, Location), ParseError<Location, Token<'input>, &'static str>>

Implementors