Struct rustfst::algorithms::weight_converters::ToGallicConverter
source · pub struct ToGallicConverter {}
Expand description
Mapper from W
to GallicTr<W>
.
Trait Implementations§
source§impl<W> WeightConverter<W, GallicWeight<W>> for ToGallicConverterwhere
W: Semiring,
impl<W> WeightConverter<W, GallicWeight<W>> for ToGallicConverterwhere
W: Semiring,
fn tr_map(&mut self, tr: &Tr<W>) -> Result<Tr<GallicWeight<W>>>
fn final_tr_map( &mut self, final_tr: &FinalTr<W> ) -> Result<FinalTr<GallicWeight<W>>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
source§impl<W> WeightConverter<W, GallicWeightLeft<W>> for ToGallicConverterwhere
W: Semiring,
impl<W> WeightConverter<W, GallicWeightLeft<W>> for ToGallicConverterwhere
W: Semiring,
fn tr_map(&mut self, tr: &Tr<W>) -> Result<Tr<GallicWeightLeft<W>>>
fn final_tr_map( &mut self, final_tr: &FinalTr<W> ) -> Result<FinalTr<GallicWeightLeft<W>>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
source§impl<W> WeightConverter<W, GallicWeightMin<W>> for ToGallicConverterwhere
W: Semiring,
impl<W> WeightConverter<W, GallicWeightMin<W>> for ToGallicConverterwhere
W: Semiring,
fn tr_map(&mut self, tr: &Tr<W>) -> Result<Tr<GallicWeightMin<W>>>
fn final_tr_map( &mut self, final_tr: &FinalTr<W> ) -> Result<FinalTr<GallicWeightMin<W>>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
source§impl<W> WeightConverter<W, GallicWeightRestrict<W>> for ToGallicConverterwhere
W: Semiring,
impl<W> WeightConverter<W, GallicWeightRestrict<W>> for ToGallicConverterwhere
W: Semiring,
fn tr_map(&mut self, tr: &Tr<W>) -> Result<Tr<GallicWeightRestrict<W>>>
fn final_tr_map( &mut self, final_tr: &FinalTr<W> ) -> Result<FinalTr<GallicWeightRestrict<W>>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
source§impl<W> WeightConverter<W, GallicWeightRight<W>> for ToGallicConverterwhere
W: Semiring,
impl<W> WeightConverter<W, GallicWeightRight<W>> for ToGallicConverterwhere
W: Semiring,
fn tr_map(&mut self, tr: &Tr<W>) -> Result<Tr<GallicWeightRight<W>>>
fn final_tr_map( &mut self, final_tr: &FinalTr<W> ) -> Result<FinalTr<GallicWeightRight<W>>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
Auto Trait Implementations§
impl Freeze for ToGallicConverter
impl RefUnwindSafe for ToGallicConverter
impl Send for ToGallicConverter
impl Sync for ToGallicConverter
impl Unpin for ToGallicConverter
impl UnwindSafe for ToGallicConverter
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