Enum rustc_lint::middle::ty::RepresentabilityUnstable [-] [+] [src]

pub enum Representability {
    Representable,
    ContainsRecursive,
    SelfRecursive,
}

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

Trait Implementations

Derived Implementations

impl Debug for Representability

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl PartialEq<Representability> for Representability

fn eq(&self, __arg_0: &Representability) -> bool

fn ne(&self, __arg_0: &Representability) -> bool

impl Eq for Representability

impl Ord for Representability

fn cmp(&self, __arg_0: &Representability) -> Ordering

impl PartialOrd<Representability> for Representability

fn partial_cmp(&self, __arg_0: &Representability) -> Option<Ordering>

fn lt(&self, __arg_0: &Representability) -> bool

fn le(&self, __arg_0: &Representability) -> bool

fn gt(&self, __arg_0: &Representability) -> bool

fn ge(&self, __arg_0: &Representability) -> bool

impl Clone for Representability

fn clone(&self) -> Representability

fn clone_from(&mut self, source: &Self)

impl Copy for Representability