Skip to main content

Err

Struct Err 

Source
pub struct Err<E> { /* private fields */ }

Implementations§

Source§

impl<E> Err<E>
where E: ErrorTrait + Send + Sync + 'static,

Source

pub fn from_err(err: E) -> Self

Source

pub fn from_errs<C>(err: E, children: &mut dyn Iterator<Item = C>) -> Self
where C: ErrorTrait + Send + Sync + 'static,

Source

pub fn raise<E2>(self, err: E2) -> Err<E2>
where E2: ErrorTrait + Send + Sync + 'static,

Source

pub fn as_inner(&self) -> &E

Source

pub fn simple_display(&self) -> SimpleDisplay<'_, E>

Source

pub fn detailed_display(&self) -> DetailedDisplay<'_, E>

Source

pub fn as_error(&self) -> ErrorImplementorBorrowed<'_, E>

Source

pub fn into_error(self) -> ErrorImplementorOwned<E>

Trait Implementations§

Source§

impl<E> Debug for Err<E>
where E: ErrorTrait + Send + Sync + 'static,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E> !RefUnwindSafe for Err<E>

§

impl<E> !UnwindSafe for Err<E>

§

impl<E> Freeze for Err<E>
where Box<TypedFrame<E>>: Freeze,

§

impl<E> Send for Err<E>
where Box<TypedFrame<E>>: Send,

§

impl<E> Sync for Err<E>
where Box<TypedFrame<E>>: Sync,

§

impl<E> Unpin for Err<E>
where Box<TypedFrame<E>>: Unpin,

§

impl<E> UnsafeUnpin for Err<E>
where Box<TypedFrame<E>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.