pub struct List {
pub statements: Vec<Statement>,
pub elements: Option<PackedContent>,
pub delimiter: _BraceDelimiter,
}Expand description
Struct generated by strutuct! for List.
Fields§
§statements: Vec<Statement>Field List::statements generated by strutuct!.
elements: Option<PackedContent>Field List::elements generated by strutuct!.
delimiter: _BraceDelimiterField List::delimiter generated by strutuct!.
Implementations§
Trait Implementations§
Source§impl From<List> for ExprCollection
impl From<List> for ExprCollection
Source§impl From<List> for PackedContent
impl From<List> for PackedContent
Source§impl Lex for List
impl Lex for List
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for Listwhere
N: ExternalCstNode,
impl<N> Migrate<N> for Listwhere
N: ExternalCstNode,
Source§impl PrettyTree for List
impl PrettyTree for List
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnsafeUnpin for List
impl UnwindSafe for List
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