Enum rustc::ty::InstanceDef
[−]
[src]
pub enum InstanceDef<'tcx> { Item(DefId), Intrinsic(DefId), FnPtrShim(DefId, Ty<'tcx>), Virtual(DefId, usize), ClosureOnceShim { call_once: DefId, }, DropGlue(DefId, Option<Ty<'tcx>>), CloneShim(DefId, Ty<'tcx>), }
🔬 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?
Variants
Item(DefId)
🔬 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?
Intrinsic(DefId)
🔬 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?
FnPtrShim(DefId, Ty<'tcx>)
🔬 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?
<fn() as FnTrait>::call_* def-id is FnTrait::call_*
Virtual(DefId, usize)
🔬 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?
ClosureOnceShim
🔬 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?
<[mut closure] as FnOnce>::call_once
Fields of ClosureOnceShim
call_once: DefId | 🔬 This is a nightly-only experimental API. ( |
DropGlue(DefId, Option<Ty<'tcx>>)
🔬 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?
drop_in_place::
CloneShim(DefId, Ty<'tcx>)
🔬 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?
<T as Clone>::clone
shim.
Methods
impl<'tcx> InstanceDef<'tcx>
[src]
impl<'tcx> InstanceDef<'tcx>
pub fn def_id(&self) -> DefId
[src]
pub fn def_id(&self) -> DefId
🔬 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?
pub fn attrs<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> Attributes<'tcx>
[src]
pub fn attrs<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> Attributes<'tcx>
🔬 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?
pub fn is_inline<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> bool
[src]
pub fn is_inline<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> bool
🔬 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?
pub fn requires_local<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> bool
[src]
pub fn requires_local<'a>(&self, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> bool
🔬 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?
Trait Implementations
impl<'a, 'gcx> HashStable<StableHashingContext<'a>> for InstanceDef<'gcx>
[src]
impl<'a, 'gcx> HashStable<StableHashingContext<'a>> for InstanceDef<'gcx>
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher<W>
)
🔬 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?
impl<'tcx> Key for InstanceDef<'tcx>
[src]
impl<'tcx> Key for InstanceDef<'tcx>
fn map_crate(&self) -> CrateNum
[src]
fn map_crate(&self) -> CrateNum
🔬 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?
Given an instance of this key, what crate is it referring to? This is used to find the provider. Read more
fn default_span(&self, tcx: TyCtxt) -> Span
[src]
fn default_span(&self, tcx: TyCtxt) -> Span
🔬 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?
In the event that a cycle occurs, if no explicit span has been given for a query with key self
, what span should we use? Read more
impl<'tcx> Copy for InstanceDef<'tcx>
[src]
impl<'tcx> Copy for InstanceDef<'tcx>
impl<'tcx> Clone for InstanceDef<'tcx>
[src]
impl<'tcx> Clone for InstanceDef<'tcx>
fn clone(&self) -> InstanceDef<'tcx>
[src]
fn clone(&self) -> InstanceDef<'tcx>
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<'tcx> PartialEq for InstanceDef<'tcx>
[src]
impl<'tcx> PartialEq for InstanceDef<'tcx>
fn eq(&self, __arg_0: &InstanceDef<'tcx>) -> bool
[src]
fn eq(&self, __arg_0: &InstanceDef<'tcx>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InstanceDef<'tcx>) -> bool
[src]
fn ne(&self, __arg_0: &InstanceDef<'tcx>) -> bool
This method tests for !=
.
impl<'tcx> Eq for InstanceDef<'tcx>
[src]
impl<'tcx> Eq for InstanceDef<'tcx>
impl<'tcx> Hash for InstanceDef<'tcx>
[src]
impl<'tcx> Hash for InstanceDef<'tcx>
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'tcx> Debug for InstanceDef<'tcx>
[src]
impl<'tcx> Debug for InstanceDef<'tcx>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'tcx> Encodable for InstanceDef<'tcx>
[src]
impl<'tcx> Encodable for InstanceDef<'tcx>
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 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?
impl<'tcx> Decodable for InstanceDef<'tcx>
[src]
impl<'tcx> Decodable for InstanceDef<'tcx>
fn decode<__D: Decoder>(
__arg_0: &mut __D
) -> Result<InstanceDef<'tcx>, __D::Error>
[src]
fn decode<__D: Decoder>(
__arg_0: &mut __D
) -> Result<InstanceDef<'tcx>, __D::Error>
🔬 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?
impl<'a, 'tcx> Lift<'tcx> for InstanceDef<'a>
[src]
impl<'a, 'tcx> Lift<'tcx> for InstanceDef<'a>
type Lifted = InstanceDef<'tcx>
🔬 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?
fn lift_to_tcx<'b, 'gcx>(
&self,
tcx: TyCtxt<'b, 'gcx, 'tcx>
) -> Option<Self::Lifted>
[src]
fn lift_to_tcx<'b, 'gcx>(
&self,
tcx: TyCtxt<'b, 'gcx, 'tcx>
) -> Option<Self::Lifted>
🔬 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?
Auto Trait Implementations
impl<'tcx> !Send for InstanceDef<'tcx>
impl<'tcx> !Send for InstanceDef<'tcx>
impl<'tcx> !Sync for InstanceDef<'tcx>
impl<'tcx> !Sync for InstanceDef<'tcx>