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
sourceimpl Automaton for AlwaysMatch
impl Automaton for AlwaysMatch
sourcefn 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 moresourcefn 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 moresourcefn 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. Read more
sourcefn 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. Read more
sourcefn 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. Read more
sourcefn 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. Read more
sourceimpl Clone for AlwaysMatch
impl Clone for AlwaysMatch
sourcefn clone(&self) -> AlwaysMatch
fn clone(&self) -> AlwaysMatch
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more