pub struct TrivialLookAheadMatcher<W, M> { /* private fields */ }

Trait Implementations§

source§

impl<W: Clone, M: Clone> Clone for TrivialLookAheadMatcher<W, M>

source§

fn clone(&self) -> TrivialLookAheadMatcher<W, M>

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: Debug, M: Debug> Debug for TrivialLookAheadMatcher<W, M>

source§

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

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

impl<W, F, B, M> LookaheadMatcher<W, F, B> for TrivialLookAheadMatcher<W, M>
where W: Semiring, F: Fst<W>, B: Borrow<F>, M: Matcher<W, F, B>,

§

type MatcherData = ()

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>>( &mut self, _lfst: &BLF ) -> Result<()>

source§

fn lookahead_fst<LF: Fst<W>, BLF: Borrow<LF>>( &self, _matcher_state: StateId, _lfst: &BLF, _s: StateId ) -> Result<Option<LookAheadMatcherData<W>>>

source§

fn lookahead_label(&self, _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> Matcher<W, F, B> for TrivialLookAheadMatcher<W, M>
where W: Semiring, F: Fst<W>, B: Borrow<F>, M: Matcher<W, F, B>,

§

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

Auto Trait Implementations§

§

impl<W, M> Freeze for TrivialLookAheadMatcher<W, M>
where M: Freeze,

§

impl<W, M> RefUnwindSafe for TrivialLookAheadMatcher<W, M>

§

impl<W, M> Send for TrivialLookAheadMatcher<W, M>
where M: Send, W: Send,

§

impl<W, M> Sync for TrivialLookAheadMatcher<W, M>
where M: Sync, W: Sync,

§

impl<W, M> Unpin for TrivialLookAheadMatcher<W, M>
where M: Unpin, W: Unpin,

§

impl<W, M> UnwindSafe for TrivialLookAheadMatcher<W, M>
where M: UnwindSafe, W: UnwindSafe,

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