[][src]Struct rustfst::semirings::ProductWeight

pub struct ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
{ /* fields omitted */ }

Product semiring: W1 * W2.

Implementations

impl<W1, W2> ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

pub fn value1(&self) -> &W1[src]

pub fn value2(&self) -> &W2[src]

pub fn set_value1(&mut self, new_weight: W1)[src]

pub fn set_value2(&mut self, new_weight: W2)[src]

Trait Implementations

impl<W1, W2> AsRef<ProductWeight<W1, W2>> for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1: Clone, W2: Clone> Clone for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1: Debug, W2: Debug> Debug for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1: Default, W2: Default> Default for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1, W2> Display for ProductWeight<W1, W2> where
    W1: SerializableSemiring,
    W2: SerializableSemiring
[src]

impl<W1: Eq, W2: Eq> Eq for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1, W2> From<(W1, W2)> for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1: Hash, W2: Hash> Hash for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1: PartialEq, W2: PartialEq> PartialEq<ProductWeight<W1, W2>> for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1: PartialOrd, W2: PartialOrd> PartialOrd<ProductWeight<W1, W2>> for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1: Semiring, W2: Semiring> ReverseBack<ProductWeight<W1, W2>> for <ProductWeight<W1, W2> as Semiring>::ReverseWeight[src]

impl<W1, W2> Semiring for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

type Type = (W1, W2)

type ReverseWeight = ProductWeight<W1::ReverseWeight, W2::ReverseWeight>

impl<W1, W2> SerializableSemiring for ProductWeight<W1, W2> where
    W1: SerializableSemiring,
    W2: SerializableSemiring
[src]

impl<W1, W2> StructuralEq for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1, W2> StructuralPartialEq for ProductWeight<W1, W2> where
    W1: Semiring,
    W2: Semiring
[src]

impl<W1, W2> WeaklyDivisibleSemiring for ProductWeight<W1, W2> where
    W1: WeaklyDivisibleSemiring,
    W2: WeaklyDivisibleSemiring
[src]

impl<W1, W2> WeightQuantize for ProductWeight<W1, W2> where
    W1: WeightQuantize,
    W2: WeightQuantize
[src]

Auto Trait Implementations

impl<W1, W2> RefUnwindSafe for ProductWeight<W1, W2> where
    W1: RefUnwindSafe,
    W2: RefUnwindSafe

impl<W1, W2> Send for ProductWeight<W1, W2> where
    W1: Send,
    W2: Send

impl<W1, W2> Sync for ProductWeight<W1, W2>

impl<W1, W2> Unpin for ProductWeight<W1, W2> where
    W1: Unpin,
    W2: Unpin

impl<W1, W2> UnwindSafe for ProductWeight<W1, W2> where
    W1: UnwindSafe,
    W2: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.