Function nommy::parse[][src]

pub fn parse<P, I>(iter: I) -> Result<P> where
    P: Parse<<I::Iter as Iterator>::Item>,
    I: IntoBuf,
    <I::Iter as Iterator>::Item: Clone

parse takes the given iterator, putting it through P::parse

use nommy::{parse, text::Tag};
let dot: Tag<"."> = parse(".".chars()).unwrap();

Errors

If P failed to parse the input at any point, that error will be propagated up the chain.