pub struct ModDecl {
pub name: Ident,
pub is_pub: bool,
pub span: Span,
}Expand description
mod name; (spec 4.5): declares a submodule resolved to name.vr or
name.rs in the same directory. Resolving and merging the submodule’s
items is the compiler’s resolve module’s job; this node only records
the declaration.
Fields§
§name: Ident§is_pub: bool§span: SpanTrait Implementations§
impl StructuralPartialEq for ModDecl
Auto Trait Implementations§
impl Freeze for ModDecl
impl RefUnwindSafe for ModDecl
impl Send for ModDecl
impl Sync for ModDecl
impl Unpin for ModDecl
impl UnsafeUnpin for ModDecl
impl UnwindSafe for ModDecl
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