Struct syntect::parsing::MatchPower
source · 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<MatchPower> for MatchPower
impl PartialEq<MatchPower> for MatchPower
source§fn eq(&self, other: &MatchPower) -> bool
fn eq(&self, other: &MatchPower) -> bool
source§impl PartialOrd<MatchPower> for MatchPower
impl PartialOrd<MatchPower> for MatchPower
source§fn partial_cmp(&self, other: &MatchPower) -> Option<Ordering>
fn partial_cmp(&self, other: &MatchPower) -> 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 more