[−][src]Enum rustc_middle::ty::util::Representability

pub enum Representability {
    Representable,
    ContainsRecursive,
    SelfRecursive(Vec<Span>),
}

Describes whether a type is representable. For types that are not representable, 'SelfRecursive' and 'ContainsRecursive' are used to distinguish between types that are recursive with themselves and types that contain a different recursive type. These cases can therefore be treated differently when reporting errors.

The ordering of the cases is significant. They are sorted so that cmp::max will keep the "more erroneous" of two values.

Variants

Representable
ContainsRecursive
SelfRecursive(Vec<Span>)

Trait Implementations

impl Clone for Representability[src]

impl Debug for Representability[src]

impl Eq for Representability[src]

impl Ord for Representability[src]

impl PartialEq<Representability> for Representability[src]

impl PartialOrd<Representability> for Representability[src]

impl StructuralEq for Representability[src]

impl StructuralPartialEq for Representability[src]

Auto Trait Implementations

impl RefUnwindSafe for Representability

impl !Send for Representability

impl !Sync for Representability

impl Unpin for Representability

impl UnwindSafe for Representability

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<'a, T> Captures<'a> 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> MaybeResult<T> for T[src]

type Error = !

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.

impl<T> WithConstness for T[src]