[][src]Struct rustfst::semirings::GallicWeight

pub struct GallicWeight<W>(pub UnionWeight<GallicWeightRestrict<W>, GallicUnionWeightOption<GallicWeightRestrict<W>>>)
where
    W: Semiring
;

UnionWeight of GallicWeightRestrict.

Implementations

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

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

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

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

Trait Implementations

impl<W> AsRef<GallicWeight<W>> for GallicWeight<W> where
    W: Semiring
[src]

impl<W: Clone> Clone for GallicWeight<W> where
    W: Semiring
[src]

impl<W: Debug> Debug for GallicWeight<W> where
    W: Semiring
[src]

impl<W> Display for GallicWeight<W> where
    W: SerializableSemiring
[src]

impl<W: Eq> Eq for GallicWeight<W> where
    W: Semiring
[src]

impl<W: Semiring> FactorIterator<GallicWeight<W>> for GallicFactor<W>[src]

impl<W> From<(StringWeightRestrict, W)> for GallicWeight<W> where
    W: Semiring
[src]

impl<W> From<(Vec<usize>, W)> for GallicWeight<W> where
    W: Semiring
[src]

impl<W> From<(usize, W)> for GallicWeight<W> where
    W: Semiring
[src]

impl<W> From<GallicWeightRestrict<W>> for GallicWeight<W> where
    W: Semiring
[src]

impl<W: Hash> Hash for GallicWeight<W> where
    W: Semiring
[src]

impl<W: PartialEq> PartialEq<GallicWeight<W>> for GallicWeight<W> where
    W: Semiring
[src]

impl<W: PartialOrd> PartialOrd<GallicWeight<W>> for GallicWeight<W> where
    W: Semiring
[src]

impl<W: Semiring> ReverseBack<GallicWeight<W>> for <GallicWeight<W> as Semiring>::ReverseWeight[src]

impl<W: Semiring> Semiring for GallicWeight<W>[src]

type Type = Vec<GallicWeightRestrict<W>>

type ReverseWeight = GallicWeight<W::ReverseWeight>

impl<W: SerializableSemiring> SerializableSemiring for GallicWeight<W>[src]

impl<W> StructuralEq for GallicWeight<W> where
    W: Semiring
[src]

impl<W> StructuralPartialEq for GallicWeight<W> where
    W: Semiring
[src]

impl<W> WeaklyDivisibleSemiring for GallicWeight<W> where
    W: WeaklyDivisibleSemiring
[src]

impl<W: Semiring> WeightConverter<GallicWeight<W>, W> for FromGallicConverter[src]

impl<W> WeightConverter<W, GallicWeight<W>> for ToGallicConverter where
    W: Semiring
[src]

impl<W> WeightQuantize for GallicWeight<W> where
    W: WeightQuantize
[src]

Auto Trait Implementations

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

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

impl<W> Sync for GallicWeight<W>

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

impl<W> UnwindSafe for GallicWeight<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> 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.