[−][src]Struct rustfst::semirings::ProductWeight
Product semiring: W1 * W2.
Implementations
impl<W1, W2> ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
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]
W1: Semiring,
W2: Semiring,
fn as_ref(&self) -> &ProductWeight<W1, W2>
[src]
impl<W1: Clone, W2: Clone> Clone for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
fn clone(&self) -> ProductWeight<W1, W2>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<W1: Debug, W2: Debug> Debug for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
impl<W1: Default, W2: Default> Default for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
fn default() -> ProductWeight<W1, W2>
[src]
impl<W1, W2> Display for ProductWeight<W1, W2> where
W1: SerializableSemiring,
W2: SerializableSemiring,
[src]
W1: SerializableSemiring,
W2: SerializableSemiring,
impl<W1: Eq, W2: Eq> Eq for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
impl<W1, W2> From<(W1, W2)> for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
impl<W1: Hash, W2: Hash> Hash for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
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<W1: PartialEq, W2: PartialEq> PartialEq<ProductWeight<W1, W2>> for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
fn eq(&self, other: &ProductWeight<W1, W2>) -> bool
[src]
fn ne(&self, other: &ProductWeight<W1, W2>) -> bool
[src]
impl<W1: PartialOrd, W2: PartialOrd> PartialOrd<ProductWeight<W1, W2>> for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
fn partial_cmp(&self, other: &ProductWeight<W1, W2>) -> Option<Ordering>
[src]
fn lt(&self, other: &ProductWeight<W1, W2>) -> bool
[src]
fn le(&self, other: &ProductWeight<W1, W2>) -> bool
[src]
fn gt(&self, other: &ProductWeight<W1, W2>) -> bool
[src]
fn ge(&self, other: &ProductWeight<W1, W2>) -> bool
[src]
impl<W1: Semiring, W2: Semiring> ReverseBack<ProductWeight<W1, W2>> for <ProductWeight<W1, W2> as Semiring>::ReverseWeight
[src]
fn reverse_back(&self) -> Result<ProductWeight<W1, W2>>
[src]
impl<W1, W2> Semiring for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
type Type = (W1, W2)
type ReverseWeight = ProductWeight<W1::ReverseWeight, W2::ReverseWeight>
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn new(weight: 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<W1, W2> SerializableSemiring for ProductWeight<W1, W2> where
W1: SerializableSemiring,
W2: SerializableSemiring,
[src]
W1: SerializableSemiring,
W2: SerializableSemiring,
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<W1, W2> StructuralEq for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
impl<W1, W2> StructuralPartialEq for ProductWeight<W1, W2> where
W1: Semiring,
W2: Semiring,
[src]
W1: Semiring,
W2: Semiring,
impl<W1, W2> WeaklyDivisibleSemiring for ProductWeight<W1, W2> where
W1: WeaklyDivisibleSemiring,
W2: WeaklyDivisibleSemiring,
[src]
W1: WeaklyDivisibleSemiring,
W2: WeaklyDivisibleSemiring,
fn divide_assign(&mut self, rhs: &Self, divide_type: DivideType) -> Result<()>
[src]
fn divide(&self, rhs: &Self, divide_type: DivideType) -> Result<Self>
[src]
impl<W1, W2> WeightQuantize for ProductWeight<W1, W2> where
W1: WeightQuantize,
W2: WeightQuantize,
[src]
W1: WeightQuantize,
W2: WeightQuantize,
Auto Trait Implementations
impl<W1, W2> RefUnwindSafe for ProductWeight<W1, W2> where
W1: RefUnwindSafe,
W2: RefUnwindSafe,
W1: RefUnwindSafe,
W2: RefUnwindSafe,
impl<W1, W2> Send for ProductWeight<W1, W2> where
W1: Send,
W2: Send,
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,
W1: Unpin,
W2: Unpin,
impl<W1, W2> UnwindSafe for ProductWeight<W1, W2> where
W1: UnwindSafe,
W2: UnwindSafe,
W1: UnwindSafe,
W2: 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>,