pub enum Collection {
Sequence(Sequence),
List(List),
Array(Array),
AngleBarList(AngleBarList),
}Expand description
The typed Collection syntax category.
Variants§
Sequence(Sequence)
The Sequence syntax alternative.
List(List)
The List syntax alternative.
Array(Array)
The Array syntax alternative.
AngleBarList(AngleBarList)
The AngleBarList syntax alternative.
Trait Implementations§
Source§impl Debug for Collection
impl Debug for Collection
Source§impl From<AngleBarList> for Collection
impl From<AngleBarList> for Collection
Source§fn from(value: AngleBarList) -> Self
fn from(value: AngleBarList) -> Self
Converts to this type from the input type.
Source§impl From<Array> for Collection
impl From<Array> for Collection
Source§impl From<Collection> for Component
impl From<Collection> for Component
Source§fn from(value: Collection) -> Self
fn from(value: Collection) -> Self
Converts to this type from the input type.
Source§impl From<Collection> for Expr
impl From<Collection> for Expr
Source§fn from(value: Collection) -> Self
fn from(value: Collection) -> Self
Converts to this type from the input type.
Source§impl From<List> for Collection
impl From<List> for Collection
Source§impl From<Sequence> for Collection
impl From<Sequence> for Collection
Source§impl Lex for Collection
impl Lex for Collection
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 Collectionwhere
N: ExternalCstNode,
impl<N> Migrate<N> for Collectionwhere
N: ExternalCstNode,
Source§impl PrettyTree for Collection
impl PrettyTree for Collection
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 Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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