struct IllegalSelfTypeVisitor<'db> {
interner: DbInterner<'db>,
trait_def_id: TraitId,
supertraits: Option<Vec<TraitRef<'db>>>,
allow_self_projections: AllowSelfProjections,
types: &'db DefaultAny<'db>,
}Fields§
§interner: DbInterner<'db>§trait_def_id: TraitId§supertraits: Option<Vec<TraitRef<'db>>>§allow_self_projections: AllowSelfProjections§types: &'db DefaultAny<'db>Implementations§
Source§impl<'db> IllegalSelfTypeVisitor<'db>
impl<'db> IllegalSelfTypeVisitor<'db>
fn is_supertrait_of_current_trait(&mut self, trait_ref: TraitRef<'db>) -> bool
Trait Implementations§
Source§impl<'db> TypeVisitor<DbInterner<'db>> for IllegalSelfTypeVisitor<'db>
impl<'db> TypeVisitor<DbInterner<'db>> for IllegalSelfTypeVisitor<'db>
type Result = ControlFlow<()>
fn visit_ty(&mut self, ty: Ty<'db>) -> Self::Result
fn visit_binder<T>(&mut self, t: &Binder<I, T>) -> Self::Resultwhere
T: TypeVisitable<I>,
fn visit_region(&mut self, r: <I as Interner>::Region) -> Self::Result
fn visit_const(&mut self, c: <I as Interner>::Const) -> Self::Result
fn visit_predicate(&mut self, p: <I as Interner>::Predicate) -> Self::Result
fn visit_clauses(&mut self, c: <I as Interner>::Clauses) -> Self::Result
fn visit_error( &mut self, _guar: <I as Interner>::ErrorGuaranteed, ) -> Self::Result
Auto Trait Implementations§
impl<'db> !RefUnwindSafe for IllegalSelfTypeVisitor<'db>
impl<'db> !UnwindSafe for IllegalSelfTypeVisitor<'db>
impl<'db> Freeze for IllegalSelfTypeVisitor<'db>
impl<'db> Send for IllegalSelfTypeVisitor<'db>
impl<'db> Sync for IllegalSelfTypeVisitor<'db>
impl<'db> Unpin for IllegalSelfTypeVisitor<'db>
impl<'db> UnsafeUnpin for IllegalSelfTypeVisitor<'db>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more