pub struct Field<'hir> {
pub name: &'hir PathDef,
pub ty: &'hir Type<'hir>,
pub id: HirId,
pub span: Span,
}Fields§
§name: &'hir PathDef§ty: &'hir Type<'hir>§id: HirId§span: SpanImplementations§
Trait Implementations§
Source§impl<'hir> HirNode<'hir> for Field<'hir>
impl<'hir> HirNode<'hir> for Field<'hir>
fn get_hir_id(&self) -> HirId
fn get_hir_node_kind(&'hir self) -> HirNodeKind<'hir>
fn set_hir_id(&mut self, id: HirId)
impl<'hir> Copy for Field<'hir>
Auto Trait Implementations§
impl<'hir> Freeze for Field<'hir>
impl<'hir> !RefUnwindSafe for Field<'hir>
impl<'hir> !Send for Field<'hir>
impl<'hir> !Sync for Field<'hir>
impl<'hir> Unpin for Field<'hir>
impl<'hir> !UnwindSafe for Field<'hir>
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