[][src]Enum serde_mangadex::manga_norm::ChapterNumber

pub enum ChapterNumber {
    Empty,
    Simple(u32),
    Dual(u32u32),
    Range(u32u32),
    FuckYou(u32String),
    SuperFuckYou(String),
}

Variants

Empty

literally nothing

Simple(u32)

up to 8 chars in the chapter field

Dual(u32u32)

6.1 and 1.6 are wholly supported

Range(u32u32)

a range

FuckYou(u32String)

grr

SuperFuckYou(String)

when you type something like "two" because you're such a fucking arsehole

Methods

impl ChapterNumber[src]

pub fn as_u32(&self) -> u32[src]

Trait Implementations

impl Clone for ChapterNumber[src]

impl Debug for ChapterNumber[src]

impl Default for ChapterNumber[src]

impl FromStr for ChapterNumber[src]

type Err = Infallible

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<ChapterNumber, Self::Err>[src]

simplified alg to remove chapter excess data.

impl PartialEq<ChapterNumber> for ChapterNumber[src]

impl PartialOrd<ChapterNumber> for ChapterNumber[src]

impl Serialize for ChapterNumber[src]

impl StructuralPartialEq for ChapterNumber[src]

Auto Trait Implementations

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, 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.