Struct muse_lang::compiler::syntax::StructureDefinition
source · pub struct StructureDefinition {
pub visibility: Option<Ranged<Symbol>>,
pub struct: Ranged<Token>,
pub name: Ranged<Symbol>,
pub members: Option<Enclosed<Delimited<Ranged<StructureMember>>>>,
}Expand description
A custom structure type definition.
Fields§
§visibility: Option<Ranged<Symbol>>The visibility keyword, if specified.
struct: Ranged<Token>The struct keyword.
name: Ranged<Symbol>The name of the structure.
members: Option<Enclosed<Delimited<Ranged<StructureMember>>>>The members of the structure, if present.
Trait Implementations§
source§impl Clone for StructureDefinition
impl Clone for StructureDefinition
source§fn clone(&self) -> StructureDefinition
fn clone(&self) -> StructureDefinition
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 StructureDefinition
impl Debug for StructureDefinition
source§impl PartialEq for StructureDefinition
impl PartialEq for StructureDefinition
source§impl TokenizeInto for StructureDefinition
impl TokenizeInto for StructureDefinition
impl StructuralPartialEq for StructureDefinition
Auto Trait Implementations§
impl Freeze for StructureDefinition
impl RefUnwindSafe for StructureDefinition
impl Send for StructureDefinition
impl Sync for StructureDefinition
impl Unpin for StructureDefinition
impl UnwindSafe for StructureDefinition
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.