[][src]Enum union_impl::handler::Handler

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

Variants

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

Methods

impl Handler[src]

pub fn new(input: ParseStream) -> Result<Option<Handler>>[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_handler(input: ParseStream) -> bool[src]

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

Auto Trait Implementations

impl !Send for Handler

impl !Sync for Handler

impl Unpin for Handler

impl UnwindSafe for Handler

impl !RefUnwindSafe for Handler

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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