Enum rustc_middle::mir::visit::TyContext [−][src]
pub enum TyContext {
LocalDecl {
local: Local,
source_info: SourceInfo,
},
UserTy(Span),
ReturnTy(SourceInfo),
YieldTy(SourceInfo),
Location(Location),
}Expand description
Extra information passed to visit_ty and friends to give context
about where the type etc appears.
Variants
Show fields
Fields of LocalDecl
local: LocalExpand description
The index of the local variable we are visiting.
source_info: SourceInfoExpand description
The source location where this local variable was declared.
UserTy(Span)Expand description
The inferred type of a user type annotation.
ReturnTy(SourceInfo)Expand description
The return type of the function.
YieldTy(SourceInfo)Location(Location)Expand description
A type found at some location.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TyContext
impl !Send for TyContext
impl !Sync for TyContext
impl Unpin for TyContext
impl UnwindSafe for TyContext
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> MaybeResult<T> for T[src]
impl<T> MaybeResult<T> for T[src]impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,