[−][src]Enum join_impl::expr_chain::group::CommandGroup
CommandGroup
is an enum of all possible ProcessExpr
, ErrExpr
and InitialExpr
operations.
Used to express group which was found in input ParseStream
Variants
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]
self,
action_expr_chain_gen: &ActionExprChainGenerator,
input: ParseStream
) -> Option<UnitResult<ProcessExpr>>
Attempts to parse given ParseStream
as ProcessExpr
.
pub fn parse_err_expr(
self,
action_expr_chain_gen: &ActionExprChainGenerator,
input: ParseStream
) -> Option<UnitResult<ErrExpr>>
[src]
self,
action_expr_chain_gen: &ActionExprChainGenerator,
input: ParseStream
) -> Option<UnitResult<ErrExpr>>
Attempts to parse given ParseStream
as ErrExpr
.
pub fn parse_initial_expr(
self,
action_expr_chain_gen: &ActionExprChainGenerator,
input: ParseStream
) -> Option<UnitResult<InitialExpr>>
[src]
self,
action_expr_chain_gen: &ActionExprChainGenerator,
input: ParseStream
) -> Option<UnitResult<InitialExpr>>
Attempts to parse given ParseStream
as InitialExpr
.
pub fn parse_empty_expr(
self,
action_expr_chain_gen: &ActionExprChainGenerator,
input: ParseStream
) -> Option<UnitResult<Empty>>
[src]
self,
action_expr_chain_gen: &ActionExprChainGenerator,
input: ParseStream
) -> Option<UnitResult<Empty>>
Attempts to parse any ActionGroup
type.
Trait Implementations
impl Clone for CommandGroup
[src]
fn clone(&self) -> CommandGroup
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CommandGroup
[src]
impl Eq for CommandGroup
[src]
impl PartialEq<CommandGroup> for CommandGroup
[src]
fn eq(&self, other: &CommandGroup) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Debug for CommandGroup
[src]
impl Display for CommandGroup
[src]
impl StructuralPartialEq for CommandGroup
[src]
impl StructuralEq for CommandGroup
[src]
Auto Trait Implementations
impl Send for CommandGroup
impl Sync for CommandGroup
impl Unpin for CommandGroup
impl UnwindSafe for CommandGroup
impl RefUnwindSafe for CommandGroup
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,