[−][src]Struct chalk_solve::rust_ir::TraitFlags
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: bool
upstream: 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]
fn clone(&self) -> TraitFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TraitFlags
[src]
impl Eq for TraitFlags
[src]
impl Hash for TraitFlags
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TraitFlags> for TraitFlags
[src]
fn eq(&self, other: &TraitFlags) -> bool
[src]
fn ne(&self, other: &TraitFlags) -> bool
[src]
impl StructuralEq for TraitFlags
[src]
impl StructuralPartialEq for TraitFlags
[src]
impl<I: Interner> Visit<I> for TraitFlags
[src]
fn visit_with<'i, R: VisitResult>(
&self,
_visitor: &mut dyn Visitor<'i, I, Result = R>,
_outer_binder: DebruijnIndex
) -> R where
I: 'i,
[src]
&self,
_visitor: &mut dyn Visitor<'i, I, Result = R>,
_outer_binder: DebruijnIndex
) -> R where
I: 'i,
Auto Trait Implementations
impl RefUnwindSafe for TraitFlags
impl Send for TraitFlags
impl Sync for TraitFlags
impl Unpin for TraitFlags
impl UnwindSafe for TraitFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, I> VisitExt<I> for T where
I: Interner,
T: Visit<I>,
[src]
I: Interner,
T: Visit<I>,