[−][src]Struct rustfst::semirings::UnionWeight
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]
W: Semiring,
O: UnionWeightOption<W>,
impl<W: Clone + Semiring, O: Clone + UnionWeightOption<W>> Clone for UnionWeight<W, O>
[src]
fn clone(&self) -> UnionWeight<W, O>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn default() -> UnionWeight<W, O>
[src]
impl<W, O> Display for UnionWeight<W, O> where
W: SerializableSemiring,
O: UnionWeightOption<W>,
[src]
W: SerializableSemiring,
O: UnionWeightOption<W>,
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<W: PartialEq + Semiring, O: PartialEq + UnionWeightOption<W>> PartialEq<UnionWeight<W, O>> for UnionWeight<W, O>
[src]
fn eq(&self, other: &UnionWeight<W, O>) -> bool
[src]
fn ne(&self, other: &UnionWeight<W, O>) -> bool
[src]
impl<W: PartialOrd + Semiring, O: PartialOrd + UnionWeightOption<W>> PartialOrd<UnionWeight<W, O>> for UnionWeight<W, O>
[src]
fn partial_cmp(&self, other: &UnionWeight<W, O>) -> Option<Ordering>
[src]
fn lt(&self, other: &UnionWeight<W, O>) -> bool
[src]
fn le(&self, other: &UnionWeight<W, O>) -> bool
[src]
fn gt(&self, other: &UnionWeight<W, O>) -> bool
[src]
fn ge(&self, other: &UnionWeight<W, O>) -> bool
[src]
impl<W: Semiring, O: UnionWeightOption<W>> ReverseBack<UnionWeight<W, O>> for <UnionWeight<W, O> as Semiring>::ReverseWeight
[src]
fn reverse_back(&self) -> Result<UnionWeight<W, O>>
[src]
impl<W: Semiring, O: UnionWeightOption<W>> Semiring for UnionWeight<W, O>
[src]
type Type = Vec<W>
type ReverseWeight = UnionWeight<W::ReverseWeight, O::ReverseOptions>
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn new(value: Self::Type) -> Self
[src]
fn plus_assign<P: Borrow<Self>>(&mut self, rhs: P) -> Result<()>
[src]
fn times_assign<P: Borrow<Self>>(&mut self, rhs: P) -> Result<()>
[src]
fn value(&self) -> &Self::Type
[src]
fn take_value(self) -> Self::Type
[src]
fn set_value(&mut self, value: Self::Type)
[src]
fn reverse(&self) -> Result<Self::ReverseWeight>
[src]
fn properties() -> SemiringProperties
[src]
fn plus<P: Borrow<Self>>(&self, rhs: P) -> Result<Self>
[src]
fn times<P: Borrow<Self>>(&self, rhs: P) -> Result<Self>
[src]
fn is_one(&self) -> bool
[src]
fn is_zero(&self) -> bool
[src]
impl<W, O> SerializableSemiring for UnionWeight<W, O> where
W: SerializableSemiring,
O: UnionWeightOption<W>,
[src]
W: SerializableSemiring,
O: UnionWeightOption<W>,
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
fn write_text<F: Write>(&self, file: &mut F) -> Result<()>
[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]
W: WeaklyDivisibleSemiring,
O: UnionWeightOption<W>,
fn divide_assign(&mut self, rhs: &Self, divide_type: DivideType) -> Result<()>
[src]
fn divide(&self, rhs: &Self, divide_type: DivideType) -> Result<Self>
[src]
impl<W, O> WeightQuantize for UnionWeight<W, O> where
W: WeightQuantize,
O: UnionWeightOption<W>,
[src]
W: WeightQuantize,
O: UnionWeightOption<W>,
Auto Trait Implementations
impl<W, O> RefUnwindSafe for UnionWeight<W, O> where
O: RefUnwindSafe,
W: RefUnwindSafe,
O: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, O> Send for UnionWeight<W, O> where
O: Send,
W: Send,
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,
O: Unpin,
W: Unpin,
impl<W, O> UnwindSafe for UnionWeight<W, O> where
O: UnwindSafe,
W: UnwindSafe,
O: 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,