pub trait ValueOrParse<M>: Parse<M> {
    // Required method
    fn value_or_parse<C, F, E>(
        value: Option<Meta<Value<M>, Span>>,
        parser: &mut Parser<C, F, E>,
        context: Context
    ) -> Result<Meta<Self, Span>, Meta<Error<M, E>, M>>
       where C: Iterator<Item = Result<DecodedChar, E>>,
             F: FnMut(Span) -> M;
}

Required Methods§

source

fn value_or_parse<C, F, E>( value: Option<Meta<Value<M>, Span>>, parser: &mut Parser<C, F, E>, context: Context ) -> Result<Meta<Self, Span>, Meta<Error<M, E>, M>>where C: Iterator<Item = Result<DecodedChar, E>>, F: FnMut(Span) -> M,

Implementors§

source§

impl<T, M> ValueOrParse<M> for Twhere T: Parse<M> + From<Value<M>>,