pub struct AlwaysMatch;
Expand description
An automaton that always matches.
This is useful in a generic context as a way to express that no automaton should be used.
Trait Implementations§
Source§impl Automaton for AlwaysMatch
impl Automaton for AlwaysMatch
Source§fn can_match(&self, _: &()) -> bool
fn can_match(&self, _: &()) -> bool
Returns true if and only if
state
can lead to a match in zero or more
steps. Read moreSource§fn will_always_match(&self, _: &()) -> bool
fn will_always_match(&self, _: &()) -> bool
Returns true if and only if
state
matches and must match no matter
what steps are taken. Read moreSource§fn starts_with(self) -> StartsWith<Self>where
Self: Sized,
fn starts_with(self) -> StartsWith<Self>where
Self: Sized,
Returns an automaton that matches the strings that start with something
this automaton matches.
Source§fn union<Rhs: Automaton>(self, rhs: Rhs) -> Union<Self, Rhs>where
Self: Sized,
fn union<Rhs: Automaton>(self, rhs: Rhs) -> Union<Self, Rhs>where
Self: Sized,
Returns an automaton that matches the strings matched by either this or
the other automaton.
Source§fn intersection<Rhs: Automaton>(self, rhs: Rhs) -> Intersection<Self, Rhs>where
Self: Sized,
fn intersection<Rhs: Automaton>(self, rhs: Rhs) -> Intersection<Self, Rhs>where
Self: Sized,
Returns an automaton that matches the strings matched by both this and
the other automaton.
Source§fn complement(self) -> Complement<Self>where
Self: Sized,
fn complement(self) -> Complement<Self>where
Self: Sized,
Returns an automaton that matches the strings not matched by this
automaton.
Source§impl Clone for AlwaysMatch
impl Clone for AlwaysMatch
Source§fn clone(&self) -> AlwaysMatch
fn clone(&self) -> AlwaysMatch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AlwaysMatch
impl RefUnwindSafe for AlwaysMatch
impl Send for AlwaysMatch
impl Sync for AlwaysMatch
impl Unpin for AlwaysMatch
impl UnwindSafe for AlwaysMatch
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