Struct rustfst::semirings::TropicalWeight
source · pub struct TropicalWeight { /* private fields */ }
Expand description
Tropical semiring: (min, +, inf, 0).
Trait Implementations§
source§impl AsRef<TropicalWeight> for TropicalWeight
impl AsRef<TropicalWeight> for TropicalWeight
source§fn as_ref(&self) -> &TropicalWeight
fn as_ref(&self) -> &TropicalWeight
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for TropicalWeight
impl Clone for TropicalWeight
source§fn clone(&self) -> TropicalWeight
fn clone(&self) -> TropicalWeight
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 TropicalWeight
impl Debug for TropicalWeight
source§impl Default for TropicalWeight
impl Default for TropicalWeight
source§fn default() -> TropicalWeight
fn default() -> TropicalWeight
Returns the “default value” for a type. Read more
source§impl Display for TropicalWeight
impl Display for TropicalWeight
source§impl From<f32> for TropicalWeight
impl From<f32> for TropicalWeight
source§impl Hash for TropicalWeight
impl Hash for TropicalWeight
source§impl PartialEq for TropicalWeight
impl PartialEq for TropicalWeight
source§impl PartialOrd for TropicalWeight
impl PartialOrd for TropicalWeight
source§impl ReverseBack<TropicalWeight> for TropicalWeight
impl ReverseBack<TropicalWeight> for TropicalWeight
fn reverse_back(&self) -> Result<TropicalWeight>
source§impl Semiring for TropicalWeight
impl Semiring for TropicalWeight
type Type = f32
type ReverseWeight = TropicalWeight
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::Type
fn take_value(self) -> Self::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 StarSemiring for TropicalWeight
impl StarSemiring for TropicalWeight
source§impl WeaklyDivisibleSemiring for TropicalWeight
impl WeaklyDivisibleSemiring for TropicalWeight
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 TropicalWeight
impl WeightQuantize for TropicalWeight
impl CompleteSemiring for TropicalWeight
impl Copy for TropicalWeight
impl Eq for TropicalWeight
Auto Trait Implementations§
impl Freeze for TropicalWeight
impl RefUnwindSafe for TropicalWeight
impl Send for TropicalWeight
impl Sync for TropicalWeight
impl Unpin for TropicalWeight
impl UnwindSafe for TropicalWeight
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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