Skip to main content

MultiEpsMatcher

Struct MultiEpsMatcher 

Source
pub struct MultiEpsMatcher<W, F, B, M>
where W: Semiring, F: Fst<W>, B: Borrow<F> + Debug, M: Matcher<W, F, B>,
{ /* private fields */ }

Implementations§

Source§

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

Source

pub fn new_with_opts<IM: Into<Option<Arc<M>>>>( fst: B, match_type: MatchType, flags: MultiEpsMatcherFlags, matcher: IM, ) -> Result<Self>

Source

pub fn matcher(&self) -> &Arc<M>

Source

pub fn clear_multi_eps_labels(&mut self)

Source

pub fn add_multi_eps_label(&mut self, label: Label) -> Result<()>

Source

pub fn remove_multi_eps_label(&mut self, label: Label) -> Result<()>

Trait Implementations§

Source§

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

Source§

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

Returns a duplicate 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, F1, F2, B1, B2, M1, M2, CF, SMT> ComposeFilter<W, F1, F2, B1, B2, MultiEpsMatcher<W, F1, B1, M1>, MultiEpsMatcher<W, F2, B2, M2>> for PushLabelsComposeFilter<W, F1, F2, B1, B2, M1, M2, CF, SMT>
where W: Semiring, F1: Fst<W>, F2: Fst<W>, B1: Borrow<F1> + Debug + Clone, B2: Borrow<F2> + Debug + Clone, M1: LookaheadMatcher<W, F1, B1>, M2: LookaheadMatcher<W, F2, B2>, CF: LookAheadComposeFilterTrait<W, F1, F2, B1, B2, M1, M2>, SMT: MatchTypeTrait,

Source§

type FS = PairFilterState<<CF as ComposeFilter<W, F1, F2, B1, B2, M1, M2>>::FS, IntegerFilterState>

Source§

fn start(&self) -> Self::FS

Source§

fn set_state( &mut self, s1: StateId, s2: StateId, filter_state: &Self::FS, ) -> Result<()>

Source§

fn filter_tr(&mut self, arc1: &mut Tr<W>, arc2: &mut Tr<W>) -> Result<Self::FS>

Source§

fn filter_final(&self, w1: &mut W, w2: &mut W) -> Result<()>

Source§

fn matcher1(&self) -> &MultiEpsMatcher<W, F1, B1, M1>

Source§

fn matcher2(&self) -> &MultiEpsMatcher<W, F2, B2, M2>

Source§

fn matcher1_shared(&self) -> &Arc<MultiEpsMatcher<W, F1, B1, M1>>

Source§

fn matcher2_shared(&self) -> &Arc<MultiEpsMatcher<W, F2, B2, M2>>

Source§

fn properties(&self, inprops: FstProperties) -> FstProperties

Source§

impl<W, F, B, M> Debug for MultiEpsMatcher<W, F, B, M>
where W: Semiring + Debug, F: Fst<W> + Debug, B: Borrow<F> + Debug + 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> Matcher<W, F, B> for MultiEpsMatcher<W, F, B, M>
where W: Semiring, F: Fst<W>, B: Borrow<F> + Debug, M: Matcher<W, F, B>,

Source§

type Iter = IteratorMultiEpsMatcher<W, F, B, M>

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, F, B, M> Freeze for MultiEpsMatcher<W, F, B, M>

§

impl<W, F, B, M> RefUnwindSafe for MultiEpsMatcher<W, F, B, M>

§

impl<W, F, B, M> Send for MultiEpsMatcher<W, F, B, M>
where M: Sync + Send, W: Send, F: Send, B: Send,

§

impl<W, F, B, M> Sync for MultiEpsMatcher<W, F, B, M>
where M: Sync + Send, F: Sync, B: Sync,

§

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

§

impl<W, F, B, M> UnsafeUnpin for MultiEpsMatcher<W, F, B, M>

§

impl<W, F, B, M> UnwindSafe for MultiEpsMatcher<W, F, B, M>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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>,

Source§

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