pub struct PatternSpecificity { /* private fields */ }Expand description
The computed specificity of one exit pattern.
Ordering compares more literal characters first, then fewer wildcards, then a longer UTF-8 byte length. A greater value is evaluated first.
Implementations§
Trait Implementations§
Source§impl Clone for PatternSpecificity
impl Clone for PatternSpecificity
Source§fn clone(&self) -> PatternSpecificity
fn clone(&self) -> PatternSpecificity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PatternSpecificity
Source§impl Debug for PatternSpecificity
impl Debug for PatternSpecificity
impl Eq for PatternSpecificity
Source§impl Ord for PatternSpecificity
impl Ord for PatternSpecificity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PatternSpecificity
impl PartialEq for PatternSpecificity
Source§impl PartialOrd for PatternSpecificity
impl PartialOrd for PatternSpecificity
impl StructuralPartialEq for PatternSpecificity
Auto Trait Implementations§
impl Freeze for PatternSpecificity
impl RefUnwindSafe for PatternSpecificity
impl Send for PatternSpecificity
impl Sync for PatternSpecificity
impl Unpin for PatternSpecificity
impl UnsafeUnpin for PatternSpecificity
impl UnwindSafe for PatternSpecificity
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