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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handler
impl RefUnwindSafe for Handler
impl !Send for Handler
impl !Sync for Handler
impl Unpin for Handler
impl UnwindSafe for Handler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more