pub enum Res {
Def(DefId),
Module(ModuleId),
Local(LocalId),
TypeParam(Span),
SelfType,
}Expand description
What a name in the source refers to.
Variants§
Def(DefId)
A declaration.
Module(ModuleId)
A module (through an import).
Local(LocalId)
A local variable, parameter or binding.
TypeParam(Span)
A type parameter, identified by the span of its declaration.
SelfType
Self inside an impl block or an interface.
Trait Implementations§
impl Copy for Res
impl Eq for Res
impl StructuralPartialEq for Res
Auto Trait Implementations§
impl Freeze for Res
impl RefUnwindSafe for Res
impl Send for Res
impl Sync for Res
impl Unpin for Res
impl UnsafeUnpin for Res
impl UnwindSafe for Res
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