pub struct SimpleWeightConverter {}
Expand description
Mapper that leaves labels and nextstate unchanged and constructs a new weight from the underlying value of the transition weight.
Trait Implementations§
source§impl<SI, SO> WeightConverter<SI, SO> for SimpleWeightConverter
impl<SI, SO> WeightConverter<SI, SO> for SimpleWeightConverter
fn tr_map(&mut self, tr: &Tr<SI>) -> Result<Tr<SO>>
fn final_tr_map(&mut self, final_tr: &FinalTr<SI>) -> Result<FinalTr<SO>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
Auto Trait Implementations§
impl Freeze for SimpleWeightConverter
impl RefUnwindSafe for SimpleWeightConverter
impl Send for SimpleWeightConverter
impl Sync for SimpleWeightConverter
impl Unpin for SimpleWeightConverter
impl UnwindSafe for SimpleWeightConverter
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