pub struct InputEpsilonMapper {}Expand description
Mapper that converts all input symbols to epsilon.
Trait Implementations§
Source§impl<S: Semiring> TrMapper<S> for InputEpsilonMapper
impl<S: Semiring> TrMapper<S> for InputEpsilonMapper
Source§fn final_tr_map(&self, _final_tr: &mut FinalTr<S>) -> Result<()>
fn final_tr_map(&self, _final_tr: &mut FinalTr<S>) -> Result<()>
The mapper will be passed final weights as trs of the form
FinalTr(EPS_LABEL, EPS_LABEL, weight).Source§fn final_action(&self) -> MapFinalAction
fn final_action(&self) -> MapFinalAction
Specifies final action the mapper requires (see above).
fn properties(&self, inprops: FstProperties) -> FstProperties
Source§impl<S> WeightConverter<S, S> for InputEpsilonMapperwhere
S: Semiring,
impl<S> WeightConverter<S, S> for InputEpsilonMapperwhere
S: Semiring,
fn tr_map(&mut self, tr: &Tr<S>) -> Result<Tr<S>>
fn final_tr_map(&mut self, final_tr: &FinalTr<S>) -> Result<FinalTr<S>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, iprops: FstProperties) -> FstProperties
Auto Trait Implementations§
impl Freeze for InputEpsilonMapper
impl RefUnwindSafe for InputEpsilonMapper
impl Send for InputEpsilonMapper
impl Sync for InputEpsilonMapper
impl Unpin for InputEpsilonMapper
impl UnwindSafe for InputEpsilonMapper
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