Struct rustc::ty::TypeParameterDef
[−]
[src]
pub struct TypeParameterDef { pub name: Name, pub def_id: DefId, pub index: u32, pub has_default: bool, pub object_lifetime_default: ObjectLifetimeDefault, pub pure_wrt_drop: bool, }
🔬 This is a nightly-only experimental API. (
rustc_private
)Fields
name: Name
🔬 This is a nightly-only experimental API. (
rustc_private
)def_id: DefId
🔬 This is a nightly-only experimental API. (
rustc_private
)index: u32
🔬 This is a nightly-only experimental API. (
rustc_private
)has_default: bool
🔬 This is a nightly-only experimental API. (
rustc_private
)object_lifetime_default: ObjectLifetimeDefault
🔬 This is a nightly-only experimental API. (
rustc_private
)pure_wrt_drop: bool
🔬 This is a nightly-only experimental API. (
rustc_private
)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.
Trait Implementations
impl Copy for TypeParameterDef
[src]
impl Clone for TypeParameterDef
[src]
fn clone(&self) -> TypeParameterDef
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Encodable for TypeParameterDef
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for TypeParameterDef
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D)
-> Result<TypeParameterDef, __D::Error>
-> Result<TypeParameterDef, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io