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 and normalizing it with the given arguments.
This will assume the type can be instantiated with these arguments.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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