pub enum MChunk {
Digits(u32, String),
Rev(u32, String),
Plain(String),
}
Expand description
Possible values of a section of a Mess
.
A numeric value is extracted if it could be, alongside the original text it
came from. This preserves both Ord
and Display
behaviour for versions
like 1.003.0
.
Variants§
Digits(u32, String)
A nice numeric value.
Rev(u32, String)
A numeric value preceeded by an r
, indicating a revision.
Plain(String)
Anything else.
Implementations§
Trait Implementations§
source§impl Ord for MChunk
impl Ord for MChunk
source§impl PartialEq for MChunk
impl PartialEq for MChunk
source§impl PartialOrd for MChunk
impl PartialOrd for MChunk
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 Eq for MChunk
impl StructuralEq for MChunk
impl StructuralPartialEq for MChunk
Auto Trait Implementations§
impl RefUnwindSafe for MChunk
impl Send for MChunk
impl Sync for MChunk
impl Unpin for MChunk
impl UnwindSafe for MChunk
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