pub enum GenericsSource {
Item(ItemId),
Method(TraitDeclId, TraitMethodId),
TraitType(TraitDeclId, AssocTypeId),
Builtin,
Other,
}Expand description
Each GenericArgs is meant for a corresponding GenericParams; this describes which one.
Variants§
Item(ItemId)
A top-level item.
Method(TraitDeclId, TraitMethodId)
A trait method.
TraitType(TraitDeclId, AssocTypeId)
A trait associated type.
Builtin
A builtin item like Box.
Other
Some other use of generics outside the main Charon ast.
Implementations§
Trait Implementations§
Source§impl Clone for GenericsSource
impl Clone for GenericsSource
Source§fn clone(&self) -> GenericsSource
fn clone(&self) -> GenericsSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericsSource
impl Debug for GenericsSource
Source§impl<'s, V> Drive<'s, V> for GenericsSourcewhere
V: Visitor + Visit<'s, ItemId> + Visit<'s, TraitDeclId> + Visit<'s, TraitMethodId> + Visit<'s, AssocTypeId>,
impl<'s, V> Drive<'s, V> for GenericsSourcewhere
V: Visitor + Visit<'s, ItemId> + Visit<'s, TraitDeclId> + Visit<'s, TraitMethodId> + Visit<'s, AssocTypeId>,
Source§fn drive_inner(&'s self, visitor: &mut V) -> ControlFlow<V::Break>
fn drive_inner(&'s self, visitor: &mut V) -> ControlFlow<V::Break>
Call
v.visit() on the immediate contents of self.Source§impl<'s, V> DriveMut<'s, V> for GenericsSourcewhere
V: Visitor + VisitMut<'s, ItemId> + VisitMut<'s, TraitDeclId> + VisitMut<'s, TraitMethodId> + VisitMut<'s, AssocTypeId>,
impl<'s, V> DriveMut<'s, V> for GenericsSourcewhere
V: Visitor + VisitMut<'s, ItemId> + VisitMut<'s, TraitDeclId> + VisitMut<'s, TraitMethodId> + VisitMut<'s, AssocTypeId>,
Source§fn drive_inner_mut(&'s mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn drive_inner_mut(&'s mut self, visitor: &mut V) -> ControlFlow<V::Break>
Call
v.visit() on the immediate contents of self.impl Eq for GenericsSource
Source§impl<C: AstFormatter> FmtWithCtx<C> for GenericsSource
impl<C: AstFormatter> FmtWithCtx<C> for GenericsSource
Source§impl Hash for GenericsSource
impl Hash for GenericsSource
Source§impl PartialEq for GenericsSource
impl PartialEq for GenericsSource
impl StructuralPartialEq for GenericsSource
Auto Trait Implementations§
impl Freeze for GenericsSource
impl RefUnwindSafe for GenericsSource
impl Send for GenericsSource
impl Sync for GenericsSource
impl Unpin for GenericsSource
impl UnsafeUnpin for GenericsSource
impl UnwindSafe for GenericsSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> HashConsable 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