pub enum Collection {
ParenthesizedExpression(ParenthesizedExpression),
Sequence(Sequence),
List(List),
Array(Array),
AngleBarList(AngleBarList),
}Variants§
ParenthesizedExpression(ParenthesizedExpression)
Sequence(Sequence)
List(List)
Array(Array)
AngleBarList(AngleBarList)
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<Collection> for SequenceElement
impl From<Collection> for SequenceElement
Source§fn from(value: Collection) -> Self
fn from(value: Collection) -> Self
Converts to this type from the input type.
Source§impl From<Collection> for SyntaxNode
impl From<Collection> for SyntaxNode
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<ParenthesizedExpression> for Collection
impl From<ParenthesizedExpression> for Collection
Source§fn from(value: ParenthesizedExpression) -> Self
fn from(value: ParenthesizedExpression) -> Self
Converts to this type from the input type.
Source§impl From<Sequence> for Collection
impl From<Sequence> for Collection
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.
Source§impl<N> Reconstruct<N> for Collectionwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for Collectionwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for Collection
impl ToCells for Collection
Source§fn to_cells(&self, output: &mut CellStream)
fn to_cells(&self, output: &mut CellStream)
Appends this value’s global cells to
output.Source§fn to_cell_stream(&self, source_id: SourceId) -> CellStream
fn to_cell_stream(&self, source_id: SourceId) -> CellStream
Emits this value into a fresh cell stream with the requested identity.
Source§impl ToTokens for Collection
impl ToTokens for Collection
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