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
This method tests for
self
and other
values to be equal, and is used
by ==
.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 moreimpl Copy for MatchPower
impl Eq for MatchPower
impl StructuralPartialEq for MatchPower
Auto Trait Implementations§
impl RefUnwindSafe for MatchPower
impl Send for MatchPower
impl Sync for MatchPower
impl Unpin for MatchPower
impl UnwindSafe for MatchPower
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.