Struct rustc_middle::ty::generics::GenericParamDef [−][src]
pub struct GenericParamDef {
pub name: Symbol,
pub def_id: DefId,
pub index: u32,
pub pure_wrt_drop: bool,
pub kind: GenericParamDefKind,
}Fields
name: Symboldef_id: DefIdindex: u32pure_wrt_drop: boolExpand description
pure_wrt_drop, set by the (unsafe) #[may_dangle] attribute
on generic parameter 'a/T, asserts data behind the parameter
'a/T won’t be accessed during the parent type’s Drop impl.
kind: GenericParamDefKindImplementations
impl GenericParamDef[src]
impl GenericParamDef[src]pub fn to_early_bound_region_data(&self) -> EarlyBoundRegion[src]
Trait Implementations
impl Clone for GenericParamDef[src]
impl Clone for GenericParamDef[src]fn clone(&self) -> GenericParamDef[src]
fn clone(&self) -> GenericParamDef[src]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)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for GenericParamDef[src]
impl Debug for GenericParamDef[src]impl<'tcx, __D: TyDecoder<'tcx>> Decodable<__D> for GenericParamDef[src]
impl<'tcx, __D: TyDecoder<'tcx>> Decodable<__D> for GenericParamDef[src]impl<'tcx, __E: TyEncoder<'tcx>> Encodable<__E> for GenericParamDef[src]
impl<'tcx, __E: TyEncoder<'tcx>> Encodable<__E> for GenericParamDef[src]impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for GenericParamDef[src]
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for GenericParamDef[src]fn hash_stable(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)[src]
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)
Auto Trait Implementations
impl RefUnwindSafe for GenericParamDef
impl Send for GenericParamDef
impl Sync for GenericParamDef
impl Unpin for GenericParamDef
impl UnwindSafe for GenericParamDef
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> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
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,