Macro rusticata_macros::error_if[][src]

macro_rules! error_if {
    ($i : expr, $cond : expr, $err : expr) => { ... };
}
Expand description

Helper macro for nom parsers: raise error if the condition is true

This macro is used when using ErrorKind