Struct lamcal::inspect::Or[][src]

pub struct Or<LHS, RHS> { /* fields omitted */ }

OR combinator for two inspections that returns Stop::Yes if one of the inspections returns Stop::Yes.

An inspection is any implementation of the Inspect trait.

The combinator always calls both inspections even if the first inspection results in a stop indicator that will not change due to the result of the second inspection.

Methods

impl<LHS, RHS> Or<LHS, RHS>
[src]

Constructs a new Or combinator inspection out of the two given inspections.

Deconstructs this inspection into its two containing inspections.

Important traits for &'a mut R

Returns a reference to the left inspection.

Important traits for &'a mut R

Returns a reference to the right inspection.

Trait Implementations

impl<LHS, RHS> Inspect for Or<LHS, RHS> where
    LHS: Inspect,
    RHS: Inspect
[src]

Inspects the term before the next step during processing and returns whether to continue processing or to stop it. Read more

Auto Trait Implementations

impl<LHS, RHS> Send for Or<LHS, RHS> where
    LHS: Send,
    RHS: Send

impl<LHS, RHS> Sync for Or<LHS, RHS> where
    LHS: Sync,
    RHS: Sync