[−][src]Trait tap::TapNomOps
Tap operations for nom's IResult
, requires the feature nom3
.
Required methods
fn tap_done<R, F: FnOnce((&mut I, &mut O)) -> R>(self, f: F) -> Self
Executes a closure if the value is IResult::Done
.
The closure will receive a tuple of (unparsed input, parsed output).
fn tap_error<R, F: FnOnce(&mut Err<E>) -> R>(self, f: F) -> Self
Executes a closure if the value is IResult::Error
.
fn tap_incomplete<R, F: FnOnce(&mut Needed) -> R>(self, f: F) -> Self
Executes a closure if the value is IResult::Incomplete
.