[][src]Trait rune::Resolve

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

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, parsed: Source<'a>) -> Result<Self::Output, ResolveError>

Resolve the value from parsed AST.

Loading content...

Implementors

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 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 Path[src]

type Output = Vec<&'a str>

Loading content...