nom::map_opt_impl!
[−]
[src]
macro_rules! map_opt_impl ( ($i:expr, $submac:ident!( $($args:tt)* ), $submac2:ident!( $($args2:tt)* )) => ( { match $submac!($i, $($args)*) { $crate::IResult::Error(e) => $crate::IResult::Error(e), $crate::IResult::Incomplete($crate::Needed::Unknown) => $crate::IResult::Incomplete($crate::Needed::Unknown), $crate::IResult::Incomplete($crate::Needed::Size(i)) => $crate::IResult::Incomplete($crate::Needed::Size(i)), $crate::IResult::Done(i, o) => match $submac2!(o, $($args2)*) { Some(output) => $crate::IResult::Done(i, output), None => $crate::IResult::Error($crate::Err::Position($crate::ErrorCode::MapOpt as u32, $i)) } } } ); );
Internal parser, do not use directly