[−][src]Struct rustfst::semirings::GallicWeightRestrict
Product of StringWeighRestrict and an arbitrary weight.
Implementations
impl<W> GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
pub fn value1(&self) -> &StringWeightRestrict
[src]
pub fn value2(&self) -> &W
[src]
pub fn set_value1(&mut self, new_weight: StringWeightRestrict)
[src]
pub fn set_value2(&mut self, new_weight: W)
[src]
Trait Implementations
impl<W> AsRef<GallicWeightRestrict<W>> for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
impl<W: Clone> Clone for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
fn clone(&self) -> GallicWeightRestrict<W>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<W: Debug> Debug for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
impl<W> Display for GallicWeightRestrict<W> where
W: SerializableSemiring,
[src]
W: SerializableSemiring,
impl<W: Eq> Eq for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
impl<W: Semiring> FactorIterator<GallicWeightRestrict<W>> for GallicFactorRestrict<W>
[src]
impl<W> From<(StringWeightRestrict, W)> for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
fn from(w: (StringWeightRestrict, W)) -> Self
[src]
impl<W> From<(Vec<usize>, W)> for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
impl<W> From<(usize, W)> for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
impl<W> From<GallicWeightRestrict<W>> for GallicWeight<W> where
W: Semiring,
[src]
W: Semiring,
fn from(w: GallicWeightRestrict<W>) -> Self
[src]
impl<W: Hash> Hash for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: 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<W: PartialEq> PartialEq<GallicWeightRestrict<W>> for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
fn eq(&self, other: &GallicWeightRestrict<W>) -> bool
[src]
fn ne(&self, other: &GallicWeightRestrict<W>) -> bool
[src]
impl<W: PartialOrd> PartialOrd<GallicWeightRestrict<W>> for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
fn partial_cmp(&self, other: &GallicWeightRestrict<W>) -> Option<Ordering>
[src]
fn lt(&self, other: &GallicWeightRestrict<W>) -> bool
[src]
fn le(&self, other: &GallicWeightRestrict<W>) -> bool
[src]
fn gt(&self, other: &GallicWeightRestrict<W>) -> bool
[src]
fn ge(&self, other: &GallicWeightRestrict<W>) -> bool
[src]
impl<W: Semiring> ReverseBack<GallicWeightRestrict<W>> for <GallicWeightRestrict<W> as Semiring>::ReverseWeight
[src]
fn reverse_back(&self) -> Result<GallicWeightRestrict<W>>
[src]
impl<W> Semiring for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
type Type = ProductWeight<StringWeightRestrict, W>
type ReverseWeight = GallicWeightRestrict<W::ReverseWeight>
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: SerializableSemiring> SerializableSemiring for GallicWeightRestrict<W>
[src]
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> StructuralEq for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
impl<W> StructuralPartialEq for GallicWeightRestrict<W> where
W: Semiring,
[src]
W: Semiring,
impl<W> WeaklyDivisibleSemiring for GallicWeightRestrict<W> where
W: WeaklyDivisibleSemiring,
[src]
W: 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<W: Semiring> WeightConverter<GallicWeightRestrict<W>, W> for FromGallicConverter
[src]
fn tr_map(&mut self, tr: &Tr<GallicWeightRestrict<W>>) -> Result<Tr<W>>
[src]
fn final_tr_map(
&mut self,
final_tr: &FinalTr<GallicWeightRestrict<W>>
) -> Result<FinalTr<W>>
[src]
&mut self,
final_tr: &FinalTr<GallicWeightRestrict<W>>
) -> Result<FinalTr<W>>
fn final_action(&self) -> MapFinalAction
[src]
fn properties(&self, inprops: FstProperties) -> FstProperties
[src]
impl<W> WeightConverter<W, GallicWeightRestrict<W>> for ToGallicConverter where
W: Semiring,
[src]
W: Semiring,
fn tr_map(&mut self, tr: &Tr<W>) -> Result<Tr<GallicWeightRestrict<W>>>
[src]
fn final_tr_map(
&mut self,
final_tr: &FinalTr<W>
) -> Result<FinalTr<GallicWeightRestrict<W>>>
[src]
&mut self,
final_tr: &FinalTr<W>
) -> Result<FinalTr<GallicWeightRestrict<W>>>
fn final_action(&self) -> MapFinalAction
[src]
fn properties(&self, inprops: FstProperties) -> FstProperties
[src]
impl<W> WeightQuantize for GallicWeightRestrict<W> where
W: WeightQuantize,
[src]
W: WeightQuantize,
Auto Trait Implementations
impl<W> RefUnwindSafe for GallicWeightRestrict<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for GallicWeightRestrict<W> where
W: Send,
W: Send,
impl<W> Sync for GallicWeightRestrict<W>
impl<W> Unpin for GallicWeightRestrict<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for GallicWeightRestrict<W> where
W: 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>,