pub struct GallicWeightRight<W>(/* private fields */)
where
W: Semiring;
Expand description
Product of StringWeightRight and an arbitrary weight.
Implementations§
Source§impl<W> GallicWeightRight<W>where
W: Semiring,
impl<W> GallicWeightRight<W>where
W: Semiring,
pub fn value1(&self) -> &StringWeightRight
pub fn value2(&self) -> &W
pub fn set_value1(&mut self, new_weight: StringWeightRight)
pub fn set_value2(&mut self, new_weight: W)
Trait Implementations§
Source§impl<W> AsRef<GallicWeightRight<W>> for GallicWeightRight<W>where
W: Semiring,
impl<W> AsRef<GallicWeightRight<W>> for GallicWeightRight<W>where
W: Semiring,
Source§impl<W> Clone for GallicWeightRight<W>
impl<W> Clone for GallicWeightRight<W>
Source§fn clone(&self) -> GallicWeightRight<W>
fn clone(&self) -> GallicWeightRight<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 GallicWeightRight<W>
impl<W> Debug for GallicWeightRight<W>
Source§impl<W> Display for GallicWeightRight<W>where
W: SerializableSemiring,
impl<W> Display for GallicWeightRight<W>where
W: SerializableSemiring,
Source§impl<W: Semiring> FactorIterator<GallicWeightRight<W>> for GallicFactorRight<W>
impl<W: Semiring> FactorIterator<GallicWeightRight<W>> for GallicFactorRight<W>
Source§impl<W> From<(StringWeightRight, W)> for GallicWeightRight<W>where
W: Semiring,
impl<W> From<(StringWeightRight, W)> for GallicWeightRight<W>where
W: Semiring,
Source§fn from(w: (StringWeightRight, W)) -> Self
fn from(w: (StringWeightRight, W)) -> Self
Converts to this type from the input type.
Source§impl<W> Hash for GallicWeightRight<W>
impl<W> Hash for GallicWeightRight<W>
Source§impl<W> PartialEq for GallicWeightRight<W>
impl<W> PartialEq for GallicWeightRight<W>
Source§impl<W> PartialOrd for GallicWeightRight<W>where
W: Semiring + PartialOrd,
impl<W> PartialOrd for GallicWeightRight<W>where
W: Semiring + PartialOrd,
Source§impl<W: Semiring> ReverseBack<GallicWeightRight<W>> for <GallicWeightRight<W> as Semiring>::ReverseWeight
impl<W: Semiring> ReverseBack<GallicWeightRight<W>> for <GallicWeightRight<W> as Semiring>::ReverseWeight
fn reverse_back(&self) -> Result<GallicWeightRight<W>>
Source§impl<W> Semiring for GallicWeightRight<W>where
W: Semiring,
impl<W> Semiring for GallicWeightRight<W>where
W: Semiring,
type Type = ProductWeight<StringWeightRight, W>
type ReverseWeight = GallicWeightLeft<<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 GallicWeightRight<W>
impl<W: SerializableSemiring> SerializableSemiring for GallicWeightRight<W>
Source§impl<W> WeaklyDivisibleSemiring for GallicWeightRight<W>where
W: WeaklyDivisibleSemiring,
impl<W> WeaklyDivisibleSemiring for GallicWeightRight<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<GallicWeightRight<W>, W> for FromGallicConverter
impl<W: Semiring> WeightConverter<GallicWeightRight<W>, W> for FromGallicConverter
fn tr_map(&mut self, tr: &Tr<GallicWeightRight<W>>) -> Result<Tr<W>>
fn final_tr_map( &mut self, final_tr: &FinalTr<GallicWeightRight<W>>, ) -> Result<FinalTr<W>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
Source§impl<W> WeightConverter<W, GallicWeightRight<W>> for ToGallicConverterwhere
W: Semiring,
impl<W> WeightConverter<W, GallicWeightRight<W>> for ToGallicConverterwhere
W: Semiring,
fn tr_map(&mut self, tr: &Tr<W>) -> Result<Tr<GallicWeightRight<W>>>
fn final_tr_map( &mut self, final_tr: &FinalTr<W>, ) -> Result<FinalTr<GallicWeightRight<W>>>
fn final_action(&self) -> MapFinalAction
fn properties(&self, inprops: FstProperties) -> FstProperties
Source§impl<W> WeightQuantize for GallicWeightRight<W>where
W: WeightQuantize,
impl<W> WeightQuantize for GallicWeightRight<W>where
W: WeightQuantize,
impl<W> Eq for GallicWeightRight<W>
impl<W> StructuralPartialEq for GallicWeightRight<W>where
W: Semiring,
Auto Trait Implementations§
impl<W> Freeze for GallicWeightRight<W>where
W: Freeze,
impl<W> RefUnwindSafe for GallicWeightRight<W>where
W: RefUnwindSafe,
impl<W> Send for GallicWeightRight<W>where
W: Send,
impl<W> Sync for GallicWeightRight<W>
impl<W> Unpin for GallicWeightRight<W>where
W: Unpin,
impl<W> UnwindSafe for GallicWeightRight<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