pub struct PureMod {
pub attrs: Vec<PureAttribute>,
pub vis: PureVis,
pub name: String,
pub items: Vec<PureItem>,
}Expand description
A module definition.
Contains all items belonging to this module. File vs inline distinction is handled at the file system layer, not in the AST representation.
Fields§
§attrs: Vec<PureAttribute>Attributes (both outer #[...] and inner #![...]).
Use PureAttribute::is_inner to distinguish.
vis: PureVisVisibility.
name: StringModule name.
items: Vec<PureItem>Module items.
Trait Implementations§
impl Eq for PureMod
impl StructuralPartialEq for PureMod
Auto Trait Implementations§
impl Freeze for PureMod
impl RefUnwindSafe for PureMod
impl Send for PureMod
impl Sync for PureMod
impl Unpin for PureMod
impl UnsafeUnpin for PureMod
impl UnwindSafe for PureMod
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