pub struct ModuleDecl {
pub visibility: Visibility,
pub name: Ident,
pub contents: Option<File>,
pub span: Span,
}Expand description
Module declaration: mod name; or mod name { ... }
Fields§
§visibility: Visibility§name: Ident§contents: Option<File>None = file-based mod name;, Some = inline mod name { ... }
span: SpanTrait Implementations§
Source§impl Clone for ModuleDecl
impl Clone for ModuleDecl
Source§fn clone(&self) -> ModuleDecl
fn clone(&self) -> ModuleDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleDecl
impl Debug for ModuleDecl
Source§impl PartialEq for ModuleDecl
impl PartialEq for ModuleDecl
impl StructuralPartialEq for ModuleDecl
Auto Trait Implementations§
impl Freeze for ModuleDecl
impl RefUnwindSafe for ModuleDecl
impl Send for ModuleDecl
impl Sync for ModuleDecl
impl Unpin for ModuleDecl
impl UnwindSafe for ModuleDecl
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