[][src]Struct rustfst::semirings::UnionWeight

pub struct UnionWeight<W: Semiring, O: UnionWeightOption<W>> { /* fields omitted */ }

Semiring that uses Times() and One() from W and union and the empty set for Plus() and Zero(), respectively. Template argument O specifies the union weight options as above.

Implementations

impl<W: Semiring, O: UnionWeightOption<W>> UnionWeight<W, O>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn iter(&self) -> impl Iterator<Item = &W>[src]

Trait Implementations

impl<W, O> AsRef<UnionWeight<W, O>> for UnionWeight<W, O> where
    W: Semiring,
    O: UnionWeightOption<W>, 
[src]

impl<W: Clone + Semiring, O: Clone + UnionWeightOption<W>> Clone for UnionWeight<W, O>[src]

impl<W: Debug + Semiring, O: Debug + UnionWeightOption<W>> Debug for UnionWeight<W, O>[src]

impl<W: Default + Semiring, O: Default + UnionWeightOption<W>> Default for UnionWeight<W, O>[src]

impl<W, O> Display for UnionWeight<W, O> where
    W: SerializableSemiring,
    O: UnionWeightOption<W>, 
[src]

impl<W: Eq + Semiring, O: Eq + UnionWeightOption<W>> Eq for UnionWeight<W, O>[src]

impl<W: Hash + Semiring, O: Hash + UnionWeightOption<W>> Hash for UnionWeight<W, O>[src]

impl<W: PartialEq + Semiring, O: PartialEq + UnionWeightOption<W>> PartialEq<UnionWeight<W, O>> for UnionWeight<W, O>[src]

impl<W: PartialOrd + Semiring, O: PartialOrd + UnionWeightOption<W>> PartialOrd<UnionWeight<W, O>> for UnionWeight<W, O>[src]

impl<W: Semiring, O: UnionWeightOption<W>> ReverseBack<UnionWeight<W, O>> for <UnionWeight<W, O> as Semiring>::ReverseWeight[src]

impl<W: Semiring, O: UnionWeightOption<W>> Semiring for UnionWeight<W, O>[src]

type Type = Vec<W>

type ReverseWeight = UnionWeight<W::ReverseWeight, O::ReverseOptions>

impl<W, O> SerializableSemiring for UnionWeight<W, O> where
    W: SerializableSemiring,
    O: UnionWeightOption<W>, 
[src]

impl<W: Semiring, O: UnionWeightOption<W>> StructuralEq for UnionWeight<W, O>[src]

impl<W: Semiring, O: UnionWeightOption<W>> StructuralPartialEq for UnionWeight<W, O>[src]

impl<W, O> WeaklyDivisibleSemiring for UnionWeight<W, O> where
    W: WeaklyDivisibleSemiring,
    O: UnionWeightOption<W>, 
[src]

impl<W, O> WeightQuantize for UnionWeight<W, O> where
    W: WeightQuantize,
    O: UnionWeightOption<W>, 
[src]

Auto Trait Implementations

impl<W, O> RefUnwindSafe for UnionWeight<W, O> where
    O: RefUnwindSafe,
    W: RefUnwindSafe

impl<W, O> Send for UnionWeight<W, O> where
    O: Send,
    W: Send

impl<W, O> Sync for UnionWeight<W, O>

impl<W, O> Unpin for UnionWeight<W, O> where
    O: Unpin,
    W: Unpin

impl<W, O> UnwindSafe for UnionWeight<W, O> where
    O: UnwindSafe,
    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> 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.