pub struct Module<'hir> {
pub id: HirId,
pub items: &'hir [Item<'hir>],
pub name: &'hir PathDef,
pub span: Span,
pub extern_file: Option<FileId>,
/* private fields */
}Fields§
§id: HirId§items: &'hir [Item<'hir>]§name: &'hir PathDef§span: Span§extern_file: Option<FileId>Implementations§
Trait Implementations§
Source§impl<'hir> HirNode<'hir> for Module<'hir>
impl<'hir> HirNode<'hir> for Module<'hir>
fn get_hir_id(&self) -> HirId
fn get_hir_node_kind(&'hir self) -> HirNodeKind<'hir>
fn set_hir_id(&mut self, id: HirId)
Auto Trait Implementations§
impl<'hir> Freeze for Module<'hir>
impl<'hir> !RefUnwindSafe for Module<'hir>
impl<'hir> !Send for Module<'hir>
impl<'hir> !Sync for Module<'hir>
impl<'hir> Unpin for Module<'hir>
impl<'hir> !UnwindSafe for Module<'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