pub enum Handler {
Map(Expr),
Then(Expr),
AndThen(Expr),
}
Expand description
map => expr, then => expr, and_then => expr
Variants§
Implementations§
source§impl Handler
impl Handler
sourcepub fn is_and_then(&self) -> bool
pub fn is_and_then(&self) -> bool
Returns true
if handler is AndThen
.
sourcepub fn peek_handler(input: ParseStream<'_>) -> bool
pub fn peek_handler(input: ParseStream<'_>) -> bool
Returns true
if next value in input ParseStream
is the definition of Handler
.
sourcepub fn extract_expr(&self) -> &Expr
pub fn extract_expr(&self) -> &Expr
Extracts inner expr.