[][src]Enum mop_blocks::Error

pub enum Error {
    BadCast,
    EmptyElement,
    GDBE(GpDefinitionsBuilderError),
    Other(&'static str),
}

Variants

BadCast

It wasn't possible to cast a value

EmptyElement

It wasn't possible to extract optional element

GpDefinitionsBuilder error

Other(&'static str)

An unspecified error occurred

Implementations

impl Error[src]

pub fn cast_rslt<T, U>(value: T) -> Result<U, Error> where
    T: ToPrimitive,
    U: NumCast
[src]

pub fn opt_rslt<T>(opt: Option<T>) -> Result<T, Error>[src]

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl From<GpDefinitionsBuilderError> for Error[src]

impl From<Infallible> for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

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> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TraitCfg for T[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.