Enum rustc::mir::visit::TyContext [−][src]
pub enum TyContext { LocalDecl { local: Local, source_info: SourceInfo, }, ReturnTy(SourceInfo), YieldTy(SourceInfo), Location(Location), }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Extra information passed to visit_ty
and friends to give context
about where the type etc appears.
Variants
LocalDecl
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields of LocalDecl
local: Local | 🔬 This is a nightly-only experimental API. ( |
source_info: SourceInfo | 🔬 This is a nightly-only experimental API. ( |
ReturnTy(SourceInfo)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The return type of the function.
YieldTy(SourceInfo)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Location(Location)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
A type found at some location.
Trait Implementations
impl Copy for TyContext
[src]
impl Copy for TyContext
impl Clone for TyContext
[src]
impl Clone for TyContext
fn clone(&self) -> TyContext
[src]
fn clone(&self) -> TyContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for TyContext
[src]
impl Debug for TyContext
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for TyContext
[src]
impl PartialEq for TyContext
fn eq(&self, other: &TyContext) -> bool
[src]
fn eq(&self, other: &TyContext) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TyContext) -> bool
[src]
fn ne(&self, other: &TyContext) -> bool
This method tests for !=
.
impl Eq for TyContext
[src]
impl Eq for TyContext
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Hash for TyContext
[src]
impl Hash for TyContext