pub struct LabelLookAheadMatcher<W, F, B, M, MFT>
where W: Semiring, F: Fst<W>, B: Borrow<F>, M: Matcher<W, F, B>,
{ /* private fields */ }

Trait Implementations§

source§

impl<W, F, B, M, MFT: Clone> Clone for LabelLookAheadMatcher<W, F, B, M, MFT>
where W: Semiring + Clone, F: Fst<W> + Clone, B: Borrow<F> + Clone, M: Matcher<W, F, B> + Clone,

source§

fn clone(&self) -> LabelLookAheadMatcher<W, F, B, M, MFT>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<W, F, B, M, MFT: Debug> Debug for LabelLookAheadMatcher<W, F, B, M, MFT>
where W: Semiring + Debug, F: Fst<W> + Debug, B: Borrow<F> + Debug, M: Matcher<W, F, B> + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<W, F, B, M, MFT> LookaheadMatcher<W, F, B> for LabelLookAheadMatcher<W, F, B, M, MFT>
where W: Semiring + 'static, F: Fst<W>, B: Borrow<F> + Debug + Clone, M: Matcher<W, F, B>, MFT: MatcherFlagsTrait,

§

type MatcherData = LabelReachableData

source§

fn data(&self) -> Option<&Arc<Self::MatcherData>>

source§

fn new_with_data( fst: B, match_type: MatchType, data: Option<Arc<Self::MatcherData>> ) -> Result<Self>

source§

fn create_data<F2: Fst<W>, BF2: Borrow<F2>>( fst: BF2, match_type: MatchType ) -> Result<Option<Self::MatcherData>>

source§

fn init_lookahead_fst<LF: Fst<W>, BLF: Borrow<LF> + Clone>( &mut self, lfst: &BLF ) -> Result<()>

source§

fn lookahead_fst<LF: Fst<W>, BLF: Borrow<LF>>( &self, matcher_state: StateId, lfst: &BLF, lfst_state: StateId ) -> Result<Option<LookAheadMatcherData<W>>>

source§

fn lookahead_label(&self, current_state: StateId, label: Label) -> Result<bool>

source§

fn lookahead_prefix( &self, tr: &mut Tr<W>, la_matcher_data: &LookAheadMatcherData<W> ) -> bool

source§

impl<W, F, B, M, MFT> Matcher<W, F, B> for LabelLookAheadMatcher<W, F, B, M, MFT>
where W: Semiring, F: Fst<W>, B: Borrow<F> + Debug + Clone, M: Matcher<W, F, B>, MFT: MatcherFlagsTrait,

§

type Iter = <M as Matcher<W, F, B>>::Iter

source§

fn new(fst: B, match_type: MatchType) -> Result<Self>

source§

fn iter(&self, state: StateId, label: Label) -> Result<Self::Iter>

source§

fn final_weight(&self, state: StateId) -> Result<Option<W>>

source§

fn match_type(&self, test: bool) -> Result<MatchType>

source§

fn flags(&self) -> MatcherFlags

source§

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.
source§

fn fst(&self) -> &B

source§

impl<W, F, B, M, MFT: PartialEq> PartialEq for LabelLookAheadMatcher<W, F, B, M, MFT>
where W: Semiring + PartialEq, F: Fst<W> + PartialEq, B: Borrow<F> + PartialEq, M: Matcher<W, F, B> + PartialEq,

source§

fn eq(&self, other: &LabelLookAheadMatcher<W, F, B, M, MFT>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<W, F, B, M, MFT> StructuralPartialEq for LabelLookAheadMatcher<W, F, B, M, MFT>
where W: Semiring, F: Fst<W>, B: Borrow<F>, M: Matcher<W, F, B>,

Auto Trait Implementations§

§

impl<W, F, B, M, MFT> Freeze for LabelLookAheadMatcher<W, F, B, M, MFT>
where M: Freeze,

§

impl<W, F, B, M, MFT> RefUnwindSafe for LabelLookAheadMatcher<W, F, B, M, MFT>

§

impl<W, F, B, M, MFT> Send for LabelLookAheadMatcher<W, F, B, M, MFT>
where M: Send, W: Send, F: Send, B: Send, MFT: Send,

§

impl<W, F, B, M, MFT> Sync for LabelLookAheadMatcher<W, F, B, M, MFT>
where M: Sync, F: Sync, B: Sync, MFT: Sync,

§

impl<W, F, B, M, MFT> Unpin for LabelLookAheadMatcher<W, F, B, M, MFT>
where M: Unpin, W: Unpin, F: Unpin, B: Unpin, MFT: Unpin,

§

impl<W, F, B, M, MFT> UnwindSafe for LabelLookAheadMatcher<W, F, B, M, MFT>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V