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]
impl<LHS, RHS> Or<LHS, RHS>
pub fn new(lhs: LHS, rhs: RHS) -> Self
[src]
pub fn new(lhs: LHS, rhs: RHS) -> Self
Constructs a new Or
combinator inspection out of the two given
inspections.
pub fn unwrap(self) -> (LHS, RHS)
[src]
pub fn unwrap(self) -> (LHS, RHS)
Deconstructs this inspection into its two containing inspections.
ⓘImportant traits for &'a mut Rpub fn left(&self) -> &LHS
[src]
ⓘImportant traits for &'a mut R
pub fn left(&self) -> &LHS
Returns a reference to the left inspection.
ⓘImportant traits for &'a mut Rpub fn right(&self) -> &RHS
[src]
ⓘImportant traits for &'a mut R
pub fn right(&self) -> &RHS
Returns a reference to the right inspection.