pub struct Or<F, S> {
pub first: F,
pub second: S,
}Expand description
Matches at least one of the provided atoms, trying first before second.
Fields§
§first: FThe first atom to be checked
second: SThe second atom to be checked.
If first matches then second would not be tested.
Implementations§
Trait Implementations§
Source§impl<F, S> AlwaysAtom for Or<F, S>where
F: AlwaysAtom,
S: Atom,
impl<F, S> AlwaysAtom for Or<F, S>where
F: AlwaysAtom,
S: Atom,
Source§fn parse_always(&self, st: &str) -> Match
fn parse_always(&self, st: &str) -> Match
Returns the length of the match
Auto Trait Implementations§
impl<F, S> Freeze for Or<F, S>
impl<F, S> RefUnwindSafe for Or<F, S>where
F: RefUnwindSafe,
S: RefUnwindSafe,
impl<F, S> Send for Or<F, S>
impl<F, S> Sync for Or<F, S>
impl<F, S> Unpin for Or<F, S>
impl<F, S> UnwindSafe for Or<F, S>where
F: UnwindSafe,
S: UnwindSafe,
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