[][src]Enum join_impl::handler::Handler

pub enum Handler {
    Map(Expr),
    Then(Expr),
    AndThen(Expr),
}

map => expr, then => expr, and_then => expr

Variants

Map(Expr)
Then(Expr)
AndThen(Expr)

Methods

impl Handler[src]

pub fn new(input: ParseStream) -> Result<Option<Self>>[src]

Checks if input ParseStream next value is a Handler and then if it's true, attempts to parse it, otherwise returns None. Will return Err if ParseStream must contain Handler but it can't be parsed.

pub fn is_map(&self) -> bool[src]

Returns true if handler is Map.

pub fn is_then(&self) -> bool[src]

Returns true if handler is Then.

pub fn is_and_then(&self) -> bool[src]

Returns true if handler is AndThen.

pub fn peek_handler(input: ParseStream) -> bool[src]

Returns true if next value in input ParseStream is the definition of Handler.

pub fn extract_expr(&self) -> &Expr[src]

Extracts inner expr.

Auto Trait Implementations

impl !RefUnwindSafe for Handler

impl !Send for Handler

impl !Sync for Handler

impl Unpin for Handler

impl UnwindSafe for Handler

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.