Struct muse_lang::compiler::syntax::NewStructField
source · pub struct NewStructField {
pub name: Ranged<Symbol>,
pub colon: Ranged<Token>,
pub value: Ranged<Expression>,
}Expand description
A single field in a NewStruct.
Fields§
§name: Ranged<Symbol>The name of the field.
colon: Ranged<Token>The : token
value: Ranged<Expression>The value of the field.
Trait Implementations§
source§impl Clone for NewStructField
impl Clone for NewStructField
source§fn clone(&self) -> NewStructField
fn clone(&self) -> NewStructField
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 NewStructField
impl Debug for NewStructField
source§impl PartialEq for NewStructField
impl PartialEq for NewStructField
source§impl TokenizeInto for NewStructField
impl TokenizeInto for NewStructField
impl StructuralPartialEq for NewStructField
Auto Trait Implementations§
impl Freeze for NewStructField
impl RefUnwindSafe for NewStructField
impl Send for NewStructField
impl Sync for NewStructField
impl Unpin for NewStructField
impl UnwindSafe for NewStructField
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.