[][src]Struct chalk_rust_ir::TraitFlags

pub struct TraitFlags {
    pub auto: bool,
    pub marker: bool,
    pub upstream: bool,
    pub fundamental: bool,
    pub non_enumerable: bool,
    pub coinductive: bool,
}

Fields

auto: bool

An "auto trait" is one that is "automatically implemented" for every struct, so long as no explicit impl is given.

Examples are Send and Sync.

marker: boolupstream: bool

Indicate that a trait is defined upstream (in a dependency), used during coherence checking.

fundamental: bool

A fundamental trait is a trait where adding an impl for an existing type is considered a breaking change. Examples of fundamental traits are the closure traits like Fn and FnMut.

As of this writing (2020-03-27), fundamental traits are declared by the unstable #[fundamental] attribute in rustc, and hence cannot appear outside of the standard library.

non_enumerable: bool

Indicates that chalk cannot list all of the implementations of the given trait, likely because it is a publicly exported trait in a library.

Currently (2020-03-27) rustc and rust-analyzer mark all traits as non_enumerable, and in the future it may become the only option.

coinductive: bool

Trait Implementations

impl Clone for TraitFlags[src]

impl Debug for TraitFlags[src]

impl Eq for TraitFlags[src]

impl Hash for TraitFlags[src]

impl PartialEq<TraitFlags> for TraitFlags[src]

impl StructuralEq for TraitFlags[src]

impl StructuralPartialEq for TraitFlags[src]

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

impl<T> From<T> for T[src]

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

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.