Struct rustfst::algorithms::compose::matchers::SigmaMatcher
source · pub struct SigmaMatcher<W, F, B, M>{ /* private fields */ }
Implementations§
source§impl<W, F, B, M> SigmaMatcher<W, F, B, M>
impl<W, F, B, M> SigmaMatcher<W, F, B, M>
Trait Implementations§
source§impl<W, F, B, M> Clone for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> Clone for SigmaMatcher<W, F, B, M>
source§fn clone(&self) -> SigmaMatcher<W, F, B, M>
fn clone(&self) -> SigmaMatcher<W, F, B, M>
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 moresource§impl<W, F, B, M> Debug for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> Debug for SigmaMatcher<W, F, B, M>
source§impl<W, F, B, M> Matcher<W, F, B> for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> Matcher<W, F, B> for SigmaMatcher<W, F, B, M>
type Iter = IteratorSigmaMatcher<W, F, B, M>
fn new(_fst: B, _match_type: MatchType) -> Result<Self>where
Self: Sized,
fn iter(&self, state: StateId, label: Label) -> Result<Self::Iter>
fn final_weight(&self, state: StateId) -> Result<Option<W>>
fn match_type(&self, test: bool) -> Result<MatchType>
fn flags(&self) -> MatcherFlags
source§fn priority(&self, state: StateId) -> Result<usize>
fn priority(&self, state: StateId) -> Result<usize>
Indicates preference for being the side used for matching in
composition. If the value is kRequirePriority, then it is
mandatory that it be used. Calling this method without passing the
current state of the matcher invalidates the state of the matcher.
fn fst(&self) -> &B
source§impl<W, F, B, M> PartialEq for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> PartialEq for SigmaMatcher<W, F, B, M>
source§fn eq(&self, other: &SigmaMatcher<W, F, B, M>) -> bool
fn eq(&self, other: &SigmaMatcher<W, F, B, M>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<W, F, B, M> StructuralPartialEq for SigmaMatcher<W, F, B, M>
Auto Trait Implementations§
impl<W, F, B, M> Freeze for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> RefUnwindSafe for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> Send for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> Sync for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> Unpin for SigmaMatcher<W, F, B, M>
impl<W, F, B, M> UnwindSafe for SigmaMatcher<W, F, B, M>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more