Struct lattices::semiring_application::Cost
source · pub struct Cost(/* private fields */);
Expand description
Implementation of the Cost/Tropical semiring (N U Inf, min, +, inf, 0)
Implementations§
Trait Implementations§
source§impl Multiplication<Cost> for Cost
impl Multiplication<Cost> for Cost
Implementation of the multiplication trait for Cost semiring.
source§impl One<U32WithInfinity> for Cost
impl One<U32WithInfinity> for Cost
Implementation of Identity for multiplication.
source§fn one(&self) -> U32WithInfinity
fn one(&self) -> U32WithInfinity
0 is the one element of the semiring.
source§impl Zero<U32WithInfinity> for Cost
impl Zero<U32WithInfinity> for Cost
Implementation of Identity for addition.
source§fn zero(&self) -> U32WithInfinity
fn zero(&self) -> U32WithInfinity
Infinity is the identity element for addition operation.
Auto Trait Implementations§
impl Freeze for Cost
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnwindSafe for Cost
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