Struct stable_mir::ty::FieldDef
source · pub struct FieldDef {
pub def: DefId,
pub name: Symbol,
}
Fields§
§def: DefId
The field definition.
§Warning
Do not access this field directly! This is public for the compiler to have access to it.
name: Symbol
The field name.
Implementations§
source§impl FieldDef
impl FieldDef
sourcepub fn ty_with_args(&self, args: &GenericArgs) -> Ty
pub fn ty_with_args(&self, args: &GenericArgs) -> Ty
Retrieve the type of this field instantiating the type with the given arguments.
This will assume the type can be instantiated with these arguments.
Trait Implementations§
source§impl PartialEq for FieldDef
impl PartialEq for FieldDef
impl Eq for FieldDef
impl StructuralPartialEq for FieldDef
Auto Trait Implementations§
impl Freeze for FieldDef
impl RefUnwindSafe for FieldDef
impl Send for FieldDef
impl Sync for FieldDef
impl Unpin for FieldDef
impl UnwindSafe for FieldDef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes