[−][src]Macro nom::verify
verify!(I -> IResult<I,O>, O -> bool) => I -> IResult<I, O>
returns the result of the child parser if it satisfies a verification function
named!(check<u32>, verify!(nom::be_u32, |val:u32| val >= 0 && val < 3));
verify!(I -> IResult<I,O>, O -> bool) => I -> IResult<I, O>
returns the result of the child parser if it satisfies a verification function
named!(check<u32>, verify!(nom::be_u32, |val:u32| val >= 0 && val < 3));