Struct rustfst::semirings::StringWeightLeft
source · pub struct StringWeightLeft { /* private fields */ }
Expand description
String semiring: (longest_common_prefix, ., Infinity, Epsilon)
Implementations§
Trait Implementations§
source§impl AsRef<StringWeightLeft> for StringWeightLeft
impl AsRef<StringWeightLeft> for StringWeightLeft
source§fn as_ref(&self) -> &StringWeightLeft
fn as_ref(&self) -> &StringWeightLeft
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for StringWeightLeft
impl Clone for StringWeightLeft
source§fn clone(&self) -> StringWeightLeft
fn clone(&self) -> StringWeightLeft
Returns a copy 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 Debug for StringWeightLeft
impl Debug for StringWeightLeft
source§impl Display for StringWeightLeft
impl Display for StringWeightLeft
source§impl From<u32> for StringWeightLeft
impl From<u32> for StringWeightLeft
source§impl Hash for StringWeightLeft
impl Hash for StringWeightLeft
source§impl PartialEq for StringWeightLeft
impl PartialEq for StringWeightLeft
source§fn eq(&self, other: &StringWeightLeft) -> bool
fn eq(&self, other: &StringWeightLeft) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StringWeightLeft
impl PartialOrd for StringWeightLeft
source§fn partial_cmp(&self, other: &StringWeightLeft) -> Option<Ordering>
fn partial_cmp(&self, other: &StringWeightLeft) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ReverseBack<StringWeightLeft> for <StringWeightLeft as Semiring>::ReverseWeight
impl ReverseBack<StringWeightLeft> for <StringWeightLeft as Semiring>::ReverseWeight
fn reverse_back(&self) -> Result<StringWeightLeft>
source§impl Semiring for StringWeightLeft
impl Semiring for StringWeightLeft
type Type = StringWeightVariant
type ReverseWeight = StringWeightRight
fn zero() -> Self
fn one() -> Self
fn new(value: <Self as Semiring>::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 as Semiring>::Type
fn take_value(self) -> <Self as Semiring>::Type
Move underneath value.
fn set_value(&mut self, value: <Self as Semiring>::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 WeaklyDivisibleSemiring for StringWeightLeft
impl WeaklyDivisibleSemiring for StringWeightLeft
fn divide_assign(&mut self, rhs: &Self, divide_type: DivideType) -> Result<()>
fn divide(&self, rhs: &Self, divide_type: DivideType) -> Result<Self>
source§impl WeightQuantize for StringWeightLeft
impl WeightQuantize for StringWeightLeft
impl Eq for StringWeightLeft
impl StructuralPartialEq for StringWeightLeft
Auto Trait Implementations§
impl Freeze for StringWeightLeft
impl RefUnwindSafe for StringWeightLeft
impl Send for StringWeightLeft
impl Sync for StringWeightLeft
impl Unpin for StringWeightLeft
impl UnwindSafe for StringWeightLeft
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> 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