[][src]Enum abi_stable::abi_stability::extra_checks::ExtraChecksError

#[repr(u8)]pub enum ExtraChecksError {
    TypeChecker,
    TypeCheckerErrors(RBoxError),
    NoneExtraChecks,
    ExtraChecks(RBoxError),
}

The errors returned from ExtraChecks and ForExtraChecksImplementor methods.

Variants

TypeChecker

When a type checking error happens within TypeChecker.

TypeCheckerErrors(RBoxError)

Errors returned from TypeChecker::local_check_compatibility

NoneExtraChecks

When trying to get a ExtraChecks trait object from TypeLayout.extra_checks==None .

ExtraChecks(RBoxError)

A custom error returned by the ExtraChecker or the closures in ForExtraChecksImplementor::downcast_*.

Implementations

impl ExtraChecksError[src]

pub fn from_extra_checks<E>(err: E) -> ExtraChecksError where
    E: Send + Sync + ErrorTrait + 'static, 
[src]

Constructs a ExtraChecksError::ExtraChecks from an error.

Trait Implementations

impl Debug for ExtraChecksError[src]

impl Display for ExtraChecksError[src]

impl Error for ExtraChecksError[src]

impl GetStaticEquivalent_ for ExtraChecksError[src]

type StaticEquivalent = _static_ExtraChecksError

impl StableAbi for ExtraChecksError[src]

type IsNonZeroType = False

Whether this type has a single invalid bit-pattern. Read more

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> GetWithMetadata for T[src]

type ForSelf = WithMetadata_<T, T>

This is always WithMetadata_<Self, Self>

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

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

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

impl<This> TransmuteElement for This where
    This: ?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.

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

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

The error type returned when the conversion fails.

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

type Type = T

The same type as Self. Read more