macro_rules! parse_unadvised {
{
$content:ident
} => { ... };
{
$content:ident => || $( $call:tt )*
} => { ... };
}Expand description
Within parse_adviseable, handle errors without giving advice
parse_unadvised! { CONTENT_IDENT => || CLOSURE_BODY }
expects CONTENT_IDENT to be the contents from
braced!, [bracketed!] or parenthesized!.
Calls the closure.
Errors within the closure won’t get advice.
parse_unadvised! { CONTENT_IDENT }
shorthand for calling .parse() on the content.
§Sketch
ⓘ
let something;
let _ = bracketed!(something in input);
parse_unadvised! {
something => || {
// do something with something, eg something.parse()
Ok(...)
}
}