[][src]Enum join_impl::expr_chain::group::CommandGroup

pub enum CommandGroup {
    Map,
    Dot,
    Filter,
    Inspect,
    Then,
    AndThen,
    Or,
    OrElse,
    MapErr,
    Initial,
    Chain,
    Flatten,
    Collect,
    Enumerate,
    Find,
    Fold,
    TryFold,
    Unzip,
    Zip,
    Partition,
    FilterMap,
    FindMap,
    UNWRAP,
}

CommandGroup is an enum of all possible ProcessExpr, ErrExpr and InitialExpr operations. Used to express group which was found in input ParseStream

Variants

Map
Dot
Filter
Inspect
Then
AndThen
Or
OrElse
MapErr
Initial
Chain
Flatten
Collect
Enumerate
Find
Fold
TryFold
Unzip
Zip
Partition
FilterMap
FindMap
UNWRAP

UNWRAP (Special CommandGroup used to define that next group position is by one level up [which will be #value.and_then(#previous_expr).#next_expr] )

Methods

impl CommandGroup[src]

Defines group type predicates and parser functions.

pub fn is_process_expr(self) -> bool[src]

Returns true if self command group is of ProcessExpr type.

pub fn is_err_expr(self) -> bool[src]

Returns true if self command group is of ErrExpr type.

pub fn is_initial_expr(self) -> bool[src]

Returns true if self command group is of InitialExpr type.

pub fn can_be_wrapper(self) -> bool[src]

Returns true if command group can be a wrapper.

pub fn to_process_expr(self, tokens: TokenStream) -> Result<Option<ProcessExpr>>[src]

Attempts to parse given TokenStream as ProcessExpr.

pub fn to_err_expr(self, tokens: TokenStream) -> Result<Option<ErrExpr>>[src]

Attempts to parse given TokenStream as ErrExpr.

pub fn to_initial_expr(self, tokens: TokenStream) -> Result<Option<InitialExpr>>[src]

Attempts to parse given TokenStream as InitialExpr.

pub fn parse_process_expr(
    self,
    action_expr_chain_gen: &ActionExprChainGenerator,
    input: ParseStream
) -> Option<UnitResult<ProcessExpr>>
[src]

Attempts to parse given ParseStream as ProcessExpr.

pub fn parse_err_expr(
    self,
    action_expr_chain_gen: &ActionExprChainGenerator,
    input: ParseStream
) -> Option<UnitResult<ErrExpr>>
[src]

Attempts to parse given ParseStream as ErrExpr.

pub fn parse_initial_expr(
    self,
    action_expr_chain_gen: &ActionExprChainGenerator,
    input: ParseStream
) -> Option<UnitResult<InitialExpr>>
[src]

Attempts to parse given ParseStream as InitialExpr.

pub fn parse_empty_expr(
    self,
    action_expr_chain_gen: &ActionExprChainGenerator,
    input: ParseStream
) -> Option<UnitResult<Empty>>
[src]

Attempts to parse any ActionGroup type.

Trait Implementations

impl Clone for CommandGroup[src]

impl Copy for CommandGroup[src]

impl Eq for CommandGroup[src]

impl PartialEq<CommandGroup> for CommandGroup[src]

impl Debug for CommandGroup[src]

impl Display for CommandGroup[src]

impl StructuralPartialEq for CommandGroup[src]

impl StructuralEq for CommandGroup[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

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]