Struct rustc::ty::TypeParameterDef [−][src]
pub struct TypeParameterDef {
pub name: InternedString,
pub def_id: DefId,
pub index: u32,
pub has_default: bool,
pub object_lifetime_default: ObjectLifetimeDefault,
pub pure_wrt_drop: bool,
pub synthetic: Option<SyntheticTyParamKind>,
}🔬 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
name: InternedString
🔬 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?
def_id: 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?
index: u32
🔬 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?
has_default: 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?
object_lifetime_default: ObjectLifetimeDefault
🔬 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?
pure_wrt_drop: 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?
pure_wrt_drop, set by the (unsafe) #[may_dangle] attribute
on generic parameter T, asserts data behind the parameter
T won't be accessed during the parent type's Drop impl.
synthetic: Option<SyntheticTyParamKind>
🔬 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, 'tcx> HashStable<StableHashingContext<'a>> for TypeParameterDef[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeParameterDeffn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &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 Copy for TypeParameterDef[src]
impl Copy for TypeParameterDefimpl Clone for TypeParameterDef[src]
impl Clone for TypeParameterDeffn clone(&self) -> TypeParameterDef[src]
fn clone(&self) -> TypeParameterDefReturns 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 Encodable for TypeParameterDef[src]
impl Encodable for TypeParameterDeffn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &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 Decodable for TypeParameterDef[src]
impl Decodable for TypeParameterDeffn decode<__D: Decoder>(d: &mut __D) -> Result<TypeParameterDef, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<TypeParameterDef, __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 Debug for TypeParameterDef[src]
impl Debug for TypeParameterDefAuto Trait Implementations
impl !Send for TypeParameterDef
impl !Send for TypeParameterDefimpl !Sync for TypeParameterDef
impl !Sync for TypeParameterDef