[][src]Enum structural::field::errors::InfallibleAccess

pub enum InfallibleAccess {}

The error type for accesses to fields that always exist,most often in a struct.

Because the fields always exist,this error is never actually returned, and Result<T, InfallibleAccess> has the same size as T (as of Rust 1.42).

This is used as the Err associated type for Rev*Field* implementors, which return a Result<_,InfallibleAccess>, then StructuralExt methods use NormalizeFields to turn Ok(foo) into foo (which can be safely done,since this type can't be constructed).

Trait Implementations

impl Clone for InfallibleAccess[src]

impl Cloned for InfallibleAccess[src]

type Cloned = Self

The type of this with owned values instead of references to them.

impl Copy for InfallibleAccess[src]

impl Debug for InfallibleAccess[src]

impl Display for InfallibleAccess[src]

impl Eq for InfallibleAccess[src]

impl Error for InfallibleAccess[src]

impl From<InfallibleAccess> for FailedAccess[src]

impl Hash for InfallibleAccess[src]

impl IntoFieldErr<FailedAccess> for InfallibleAccess[src]

impl IsFieldErr for InfallibleAccess[src]

impl Ord for InfallibleAccess[src]

impl PartialEq<InfallibleAccess> for InfallibleAccess[src]

impl PartialOrd<InfallibleAccess> for InfallibleAccess[src]

impl StructuralEq for InfallibleAccess[src]

impl StructuralPartialEq for InfallibleAccess[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<This, T> Array0<T> for This where
    This: ?Sized
[src]

impl<This, V, T> Array0Variant<T, V> for This where
    This: ?Sized
[src]

impl<This, T> ArrayMove0<T> for This where
    This: ?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> IntoFieldErr<T> for T where
    T: IsFieldErr
[src]

impl<This, T> IntoStructural<T> for This where
    T: FromStructural<This>, 
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?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<This, T> TryIntoStructural<T> for This where
    T: TryFromStructural<This>, 
[src]

type Error = <T as TryFromStructural<This>>::Error

The error parameter of TryFromError, returned from try_into_structural on conversion error. Read more

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

type Type = T

The same type as Self. Read more