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 PartialOrd for MChunk
impl PartialOrd for MChunk
impl Eq for MChunk
impl StructuralPartialEq for MChunk
Auto Trait Implementations§
impl Freeze for MChunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more