pub enum Combinator {
Show 23 variants
Map,
Dot,
Filter,
Inspect,
Then,
AndThen,
Or,
OrElse,
MapErr,
Initial,
Chain,
Flatten,
Collect,
Enumerate,
Find,
Fold,
TryFold,
Unzip,
Zip,
Partition,
FilterMap,
FindMap,
UNWRAP,
}
Expand description
Combinator
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 Combinator
used to define that next group position is by one level up - which will be #value.and_then(#previous_expr).#next_expr
)
Implementations§
Source§impl Combinator
Defines group type predicates and parser functions.
impl Combinator
Defines group type predicates and parser functions.
Sourcepub fn is_process_expr(self) -> bool
pub fn is_process_expr(self) -> bool
Returns true
if self command group is of ProcessExpr
type.
Sourcepub fn is_err_expr(self) -> bool
pub fn is_err_expr(self) -> bool
Returns true
if self command group is of ErrExpr
type.
Sourcepub fn is_initial_expr(self) -> bool
pub fn is_initial_expr(self) -> bool
Returns true
if self command group is of InitialExpr
type.
Sourcepub fn can_be_wrapper(self) -> bool
pub fn can_be_wrapper(self) -> bool
Returns true
if command group can be a wrapper.
Trait Implementations§
Source§impl Clone for Combinator
impl Clone for Combinator
Source§fn clone(&self) -> Combinator
fn clone(&self) -> Combinator
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Combinator
impl Debug for Combinator
Source§impl Display for Combinator
impl Display for Combinator
Source§impl PartialEq for Combinator
impl PartialEq for Combinator
impl Copy for Combinator
impl Eq for Combinator
impl StructuralPartialEq for Combinator
Auto Trait Implementations§
impl Freeze for Combinator
impl RefUnwindSafe for Combinator
impl Send for Combinator
impl Sync for Combinator
impl Unpin for Combinator
impl UnwindSafe for Combinator
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