Enum mule::Parsed[][src]

pub enum Parsed<A> {
    Invalid,
    Missing,
    Some(A),
}

Variants

Invalid
Missing
Some(A)

Implementations

impl<T> Parsed<T>[src]

pub fn get(self) -> Option<T>[src]

pub fn or_else(self, op: impl FnOnce() -> Parsed<T>) -> Parsed<T>[src]

pub fn unwrap_or_else(self, op: impl FnOnce() -> T) -> T[src]

pub fn map<U>(self, op: impl FnOnce(T) -> U) -> Parsed<U>[src]

pub fn is_some(&self) -> bool[src]

Trait Implementations

impl<A: Clone> Clone for Parsed<A>[src]

impl<A: Copy> Copy for Parsed<A>[src]

impl<A: Debug> Debug for Parsed<A>[src]

impl<A: Eq> Eq for Parsed<A>[src]

impl<A: Hash> Hash for Parsed<A>[src]

impl<A: PartialEq> PartialEq<Parsed<A>> for Parsed<A>[src]

impl<A> StructuralEq for Parsed<A>[src]

impl<A> StructuralPartialEq for Parsed<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Parsed<A> where
    A: RefUnwindSafe

impl<A> Send for Parsed<A> where
    A: Send

impl<A> Sync for Parsed<A> where
    A: Sync

impl<A> Unpin for Parsed<A> where
    A: Unpin

impl<A> UnwindSafe for Parsed<A> where
    A: UnwindSafe

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> Pointable for T

type Init = T

The type for initializers.

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.