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: f64Trait 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§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 for MatchPower
 
impl PartialOrd 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<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