[][src]Trait rune::Resolve

pub trait Resolve<'a> {
    type Output: 'a;
    fn resolve(&self, source: Source<'a>) -> Result<Self::Output, ParseError>;
}

A type that can be resolved to an internal value based on a source.

Associated Types

type Output: 'a

The output type being resolved.

Loading content...

Required methods

fn resolve(&self, source: Source<'a>) -> Result<Self::Output, ParseError>

Resolve the value from parsed AST.

Loading content...

Implementors

impl<'a> Resolve<'a> for LitObjectKey[src]

type Output = Cow<'a, str>

impl<'a> Resolve<'a> for Ident[src]

type Output = &'a str

impl<'a> Resolve<'a> for Label[src]

type Output = &'a str

impl<'a> Resolve<'a> for LitByte[src]

type Output = u8

impl<'a> Resolve<'a> for LitByteStr[src]

type Output = Cow<'a, [u8]>

impl<'a> Resolve<'a> for LitChar[src]

type Output = char

impl<'a> Resolve<'a> for LitNumber[src]

type Output = Number

impl<'a> Resolve<'a> for LitStr[src]

type Output = Cow<'a, str>

impl<'a> Resolve<'a> for LitTemplate[src]

type Output = Template

impl<'a> Resolve<'a> for Path[src]

type Output = Vec<&'a str>

Loading content...