[−][src]Struct rustfst::algorithms::tr_mappers::PlusMapper
Mapper to add a constant to all weights.
Implementations
impl<W: Semiring> PlusMapper<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 PlusMapper<S>
[src]
fn tr_map(&self, tr: &mut Tr<S>) -> Result<()>
[src]
fn final_tr_map(&self, final_tr: &mut FinalTr<S>) -> Result<()>
[src]
fn final_action(&self) -> MapFinalAction
[src]
fn properties(&self, inprops: FstProperties) -> FstProperties
[src]
impl<S> WeightConverter<S, S> for PlusMapper<S> where
S: Semiring,
[src]
S: Semiring,
fn tr_map(&mut self, tr: &Tr<S>) -> Result<Tr<S>>
[src]
fn final_tr_map(&mut self, final_tr: &FinalTr<S>) -> Result<FinalTr<S>>
[src]
fn final_action(&self) -> MapFinalAction
[src]
fn properties(&self, iprops: FstProperties) -> FstProperties
[src]
Auto Trait Implementations
impl<W> RefUnwindSafe for PlusMapper<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for PlusMapper<W> where
W: Send,
W: Send,
impl<W> Sync for PlusMapper<W>
impl<W> Unpin for PlusMapper<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for PlusMapper<W> where
W: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,