[][src]Enum versions::MChunk

pub enum MChunk {
    Digits(u32String),
    Rev(u32String),
    Plain(String),
}

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(u32String)

A nice numeric value.

Rev(u32String)

A numeric value preceeded by an r, indicating a revision.

Plain(String)

Anything else.

Implementations

impl MChunk[src]

pub fn text(&self) -> &str[src]

Extract the original String, no matter which variant it parsed into.

Trait Implementations

impl Clone for MChunk[src]

impl Debug for MChunk[src]

impl Display for MChunk[src]

impl Eq for MChunk[src]

impl Hash for MChunk[src]

impl Ord for MChunk[src]

impl PartialEq<MChunk> for MChunk[src]

impl PartialOrd<MChunk> for MChunk[src]

impl StructuralEq for MChunk[src]

impl StructuralPartialEq for MChunk[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.