pub struct GallicWeightLeft<W>(/* private fields */)
where
W: Semiring;Expand description
Product of StringWeightLeft and an arbitrary weight.
Implementations§
Source§impl<W> GallicWeightLeft<W>where
W: Semiring,
impl<W> GallicWeightLeft<W>where
W: Semiring,
pub fn value1(&self) -> &StringWeightLeft
pub fn value2(&self) -> &W
pub fn set_value1(&mut self, new_weight: StringWeightLeft)
pub fn set_value2(&mut self, new_weight: W)
Trait Implementations§
Source§impl<W> AsRef<GallicWeightLeft<W>> for GallicWeightLeft<W>where
W: Semiring,
impl<W> AsRef<GallicWeightLeft<W>> for GallicWeightLeft<W>where
W: Semiring,
Source§impl<W> Clone for GallicWeightLeft<W>
impl<W> Clone for GallicWeightLeft<W>
Source§fn clone(&self) -> GallicWeightLeft<W>
fn clone(&self) -> GallicWeightLeft<W>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<W> Debug for GallicWeightLeft<W>
impl<W> Debug for GallicWeightLeft<W>
Source§impl<W> Display for GallicWeightLeft<W>where
W: SerializableSemiring,
impl<W> Display for GallicWeightLeft<W>where
W: SerializableSemiring,
Source§impl<W: Semiring> FactorIterator<GallicWeightLeft<W>> for GallicFactorLeft<W>
impl<W: Semiring> FactorIterator<GallicWeightLeft<W>> for GallicFactorLeft<W>
Source§impl<W> From<(StringWeightLeft, W)> for GallicWeightLeft<W>where
W: Semiring,
impl<W> From<(StringWeightLeft, W)> for GallicWeightLeft<W>where
W: Semiring,
Source§fn from(w: (StringWeightLeft, W)) -> Self
fn from(w: (StringWeightLeft, W)) -> Self
Converts to this type from the input type.
Source§impl<W> Hash for GallicWeightLeft<W>
impl<W> Hash for GallicWeightLeft<W>
Source§impl<W> PartialEq for GallicWeightLeft<W>
impl<W> PartialEq for GallicWeightLeft<W>
Source§impl<W> PartialOrd for GallicWeightLeft<W>where
W: Semiring + PartialOrd,
impl<W> PartialOrd for GallicWeightLeft<W>where
W: Semiring + PartialOrd,
Source§impl<W: Semiring> ReverseBack<GallicWeightLeft<W>> for <GallicWeightLeft<W> as Semiring>::ReverseWeight
impl<W: Semiring> ReverseBack<GallicWeightLeft<W>> for <GallicWeightLeft<W> as Semiring>::ReverseWeight
fn reverse_back(&self) -> Result<GallicWeightLeft<W>>
Source§impl<W> Semiring for GallicWeightLeft<W>where
W: Semiring,
impl<W> Semiring for GallicWeightLeft<W>where
W: Semiring,
type Type = ProductWeight<StringWeightLeft, W>
type ReverseWeight = GallicWeightRight<<W as Semiring>::ReverseWeight>
fn zero() -> Self
fn one() -> Self
fn new(value: Self::Type) -> Self
fn plus_assign<P: Borrow<Self>>(&mut self, rhs: P) -> Result<()>
fn times_assign<P: Borrow<Self>>(&mut self, rhs: P) -> Result<()>
fn approx_equal<P: Borrow<Self>>(&self, rhs: P, delta: f32) -> bool
Source§fn take_value(self) -> Self::Type
fn take_value(self) -> Self::Type
Move underneath value.
fn set_value(&mut self, value: Self::Type)
fn reverse(&self) -> Result<Self::ReverseWeight>
fn properties() -> SemiringProperties
fn plus<P: Borrow<Self>>(&self, rhs: P) -> Result<Self>
fn times<P: Borrow<Self>>(&self, rhs: P) -> Result<Self>
fn is_one(&self) -> bool
fn is_zero(&self) -> bool
Source§impl<W: SerializableSemiring> SerializableSemiring for GallicWeightLeft<W>
impl<W: SerializableSemiring> SerializableSemiring for GallicWeightLeft<W>
Source§impl<W> WeaklyDivisibleSemiring for GallicWeightLeft<W>where
W: WeaklyDivisibleSemiring,
impl<W> WeaklyDivisibleSemiring for GallicWeightLeft<W>where
W: WeaklyDivisibleSemiring,
fn divide_assign(&mut self, rhs: &Self, divide_type: DivideType) -> Result<()>
fn divide(&self, rhs: &Self, divide_type: DivideType) -> Result<Self>
Source§impl<W: Semiring> WeightConverter<GallicWeightLeft<W>, W> for FromGallicConverter
impl<W: Semiring> WeightConverter<GallicWeightLeft<W>, W> for FromGallicConverter
fn tr_map(&mut self, tr: &Tr<GallicWeightLeft<W>>) -> Result<Tr<W>>
fn final_tr_map( &mut self, final_tr: &FinalTr<GallicWeightLeft<W>>, ) -> Result<FinalTr<W>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
Source§impl<W> WeightConverter<W, GallicWeightLeft<W>> for ToGallicConverterwhere
W: Semiring,
impl<W> WeightConverter<W, GallicWeightLeft<W>> for ToGallicConverterwhere
W: Semiring,
fn tr_map(&mut self, tr: &Tr<W>) -> Result<Tr<GallicWeightLeft<W>>>
fn final_tr_map( &mut self, final_tr: &FinalTr<W>, ) -> Result<FinalTr<GallicWeightLeft<W>>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
Source§impl<W> WeightQuantize for GallicWeightLeft<W>where
W: WeightQuantize,
impl<W> WeightQuantize for GallicWeightLeft<W>where
W: WeightQuantize,
impl<W> Eq for GallicWeightLeft<W>
impl<W> StructuralPartialEq for GallicWeightLeft<W>where
W: Semiring,
Auto Trait Implementations§
impl<W> Freeze for GallicWeightLeft<W>where
W: Freeze,
impl<W> RefUnwindSafe for GallicWeightLeft<W>where
W: RefUnwindSafe,
impl<W> Send for GallicWeightLeft<W>where
W: Send,
impl<W> Sync for GallicWeightLeft<W>
impl<W> Unpin for GallicWeightLeft<W>where
W: Unpin,
impl<W> UnwindSafe for GallicWeightLeft<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more