[][src]Struct rustfst::algorithms::tr_mappers::TimesMapper

pub struct TimesMapper<W: Semiring> { /* fields omitted */ }

Mapper to (right) multiply a constant to all weights.

Implementations

impl<W: Semiring> TimesMapper<W>[src]

pub fn new(value: W::Type) -> Self[src]

pub fn from_weight(value: W) -> Self[src]

pub fn map_weight(&self, weight: &mut W) -> Result<()>[src]

Trait Implementations

impl<S: Semiring> TrMapper<S> for TimesMapper<S>[src]

impl<S> WeightConverter<S, S> for TimesMapper<S> where
    S: Semiring
[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for TimesMapper<W> where
    W: RefUnwindSafe

impl<W> Send for TimesMapper<W> where
    W: Send

impl<W> Sync for TimesMapper<W>

impl<W> Unpin for TimesMapper<W> where
    W: Unpin

impl<W> UnwindSafe for TimesMapper<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.