Struct muse_lang::compiler::syntax::ModuleDefinition
source · pub struct ModuleDefinition {
pub publish: Option<Ranged<Token>>,
pub mod: Ranged<Token>,
pub name: Ranged<Symbol>,
pub contents: Ranged<Block>,
}Expand description
The syntax components of a module definition.
Fields§
§publish: Option<Ranged<Token>>The pub keyword.
mod: Ranged<Token>The mod keyword.
name: Ranged<Symbol>The name of this module.
contents: Ranged<Block>The contents of the module.
Trait Implementations§
source§impl Clone for ModuleDefinition
impl Clone for ModuleDefinition
source§fn clone(&self) -> ModuleDefinition
fn clone(&self) -> ModuleDefinition
Returns a copy 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 ModuleDefinition
impl Debug for ModuleDefinition
source§impl PartialEq for ModuleDefinition
impl PartialEq for ModuleDefinition
source§impl TokenizeInto for ModuleDefinition
impl TokenizeInto for ModuleDefinition
impl StructuralPartialEq for ModuleDefinition
Auto Trait Implementations§
impl Freeze for ModuleDefinition
impl RefUnwindSafe for ModuleDefinition
impl Send for ModuleDefinition
impl Sync for ModuleDefinition
impl Unpin for ModuleDefinition
impl UnwindSafe for ModuleDefinition
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
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> TokenizeRanged for Twhere
T: TokenizeInto,
impl<T> TokenizeRanged for Twhere
T: TokenizeInto,
source§fn tokenize_ranged(
&self,
_range: SourceRange,
tokens: &mut VecDeque<Ranged<Token>>,
)
fn tokenize_ranged( &self, _range: SourceRange, tokens: &mut VecDeque<Ranged<Token>>, )
Tokenize
self into tokens within the enclosing range.