pub enum AnyCell {
ExpressionCell(ExpressionCell),
SequenceCell(SequenceCell),
MutedCell(MutedCell),
}Variants§
Trait Implementations§
Source§impl CellNode for AnyCell
impl CellNode for AnyCell
Source§fn cell_delimiter(&self) -> DelimiterKind
fn cell_delimiter(&self) -> DelimiterKind
Returns the global cell delimiter represented by this typed node.
Source§impl From<AnyCell> for SyntaxNode
impl From<AnyCell> for SyntaxNode
Source§impl From<ExpressionCell> for AnyCell
impl From<ExpressionCell> for AnyCell
Source§fn from(value: ExpressionCell) -> Self
fn from(value: ExpressionCell) -> Self
Converts to this type from the input type.
Source§impl From<SequenceCell> for AnyCell
impl From<SequenceCell> for AnyCell
Source§fn from(value: SequenceCell) -> Self
fn from(value: SequenceCell) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for AnyCell
impl PrettyTree for AnyCell
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 AnyCellwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for AnyCellwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for AnyCell
impl ToCells for AnyCell
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.
Auto Trait Implementations§
impl Freeze for AnyCell
impl RefUnwindSafe for AnyCell
impl Send for AnyCell
impl Sync for AnyCell
impl Unpin for AnyCell
impl UnsafeUnpin for AnyCell
impl UnwindSafe for AnyCell
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