pub enum U32WithInfinity {
Infinity,
Finite(u32),
}
Expand description
Implementation for N U Inf
Variants§
Trait Implementations§
source§impl Clone for U32WithInfinity
impl Clone for U32WithInfinity
source§fn clone(&self) -> U32WithInfinity
fn clone(&self) -> U32WithInfinity
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 U32WithInfinity
impl Debug for U32WithInfinity
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 PartialEq for U32WithInfinity
impl PartialEq for U32WithInfinity
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.
impl Copy for U32WithInfinity
impl Eq for U32WithInfinity
impl StructuralPartialEq for U32WithInfinity
Auto Trait Implementations§
impl Freeze for U32WithInfinity
impl RefUnwindSafe for U32WithInfinity
impl Send for U32WithInfinity
impl Sync for U32WithInfinity
impl Unpin for U32WithInfinity
impl UnwindSafe for U32WithInfinity
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§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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more