pub struct NewStruct {
pub new: Ranged<Token>,
pub name: Ranged<Expression>,
pub fields: Option<Enclosed<Delimited<NewStructField>>>,
}Expand description
A new structure instantiation.
Fields§
§new: Ranged<Token>The new token.
name: Ranged<Expression>The name of the struct to instantiate, or the path to it.
fields: Option<Enclosed<Delimited<NewStructField>>>The fields to provide to the constructor.
Trait Implementations§
source§impl TokenizeInto for NewStruct
impl TokenizeInto for NewStruct
impl StructuralPartialEq for NewStruct
Auto Trait Implementations§
impl Freeze for NewStruct
impl RefUnwindSafe for NewStruct
impl Send for NewStruct
impl Sync for NewStruct
impl Unpin for NewStruct
impl UnwindSafe for NewStruct
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.