pub struct MatchPower(pub f64);
Expand description
Wrapper to get around the fact Rust f64
doesn’t implement Ord
and there is no non-NaN
float type
Tuple Fields§
§0: f64
Trait Implementations§
Source§impl Clone for MatchPower
impl Clone for MatchPower
Source§fn clone(&self) -> MatchPower
fn clone(&self) -> MatchPower
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 MatchPower
impl Debug for MatchPower
Source§impl Ord for MatchPower
impl Ord for MatchPower
Source§impl PartialEq for MatchPower
impl PartialEq for MatchPower
Source§impl PartialOrd for MatchPower
impl PartialOrd for MatchPower
impl Copy for MatchPower
impl Eq for MatchPower
impl StructuralPartialEq for MatchPower
Auto Trait Implementations§
impl Freeze for MatchPower
impl RefUnwindSafe for MatchPower
impl Send for MatchPower
impl Sync for MatchPower
impl Unpin for MatchPower
impl UnwindSafe for MatchPower
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.