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