Struct tantivy_fst::automaton::AlwaysMatch
source · 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 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