Enum rustfst::algorithms::MapFinalAction
source · pub enum MapFinalAction {
MapNoSuperfinal,
MapAllowSuperfinal,
MapRequireSuperfinal,
}
Expand description
Determines how final weights are mapped.
Variants§
MapNoSuperfinal
A final weight is mapped into a final weight. An error is raised if this is not possible.
MapAllowSuperfinal
A final weight is mapped to a transition to the superfinal state when the result cannot be represented as a final weight. The superfinal state will be added only if it is needed.
MapRequireSuperfinal
A final weight is mapped to a transition to the superfinal state unless the result can be represented as a final weight of weight Zero(). The superfinal state is always added (if the input is not the empty FST).
Trait Implementations§
source§impl PartialEq for MapFinalAction
impl PartialEq for MapFinalAction
source§fn eq(&self, other: &MapFinalAction) -> bool
fn eq(&self, other: &MapFinalAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MapFinalAction
Auto Trait Implementations§
impl Freeze for MapFinalAction
impl RefUnwindSafe for MapFinalAction
impl Send for MapFinalAction
impl Sync for MapFinalAction
impl Unpin for MapFinalAction
impl UnwindSafe for MapFinalAction
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