Skip to main content

PrettyTree

Trait PrettyTree 

Source
pub trait PrettyTree {
    // Required method
    fn pretty_tree(&self) -> PrettyNode;
}
Expand description

Converts typed syntax into the structural presentation used by the pretty printer.

Implementations for generated nodes are emitted from syntax!, so field names, punctuation, and newly added concrete node types appear in the tree without a handwritten registry. Category enums are intentionally transparent because they are storage details rather than CST nodes.

Required Methods§

Source

fn pretty_tree(&self) -> PrettyNode

Builds the presentation node for this syntax value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: PrettyTree + ?Sized> PrettyTree for &T

Source§

fn pretty_tree(&self) -> PrettyNode

Source§

impl<T: PrettyTree + Spanned> PrettyTree for Option<T>

Source§

fn pretty_tree(&self) -> PrettyNode

Source§

impl<T: PrettyTree + Spanned> PrettyTree for Vec<T>

Source§

fn pretty_tree(&self) -> PrettyNode

Source§

impl<T: PrettyTree> PrettyTree for Box<T>

Source§

fn pretty_tree(&self) -> PrettyNode

Implementors§

Source§

impl PrettyTree for Adj

Source§

impl PrettyTree for AdjacentExpr

Source§

impl PrettyTree for AngleBarList

Source§

impl PrettyTree for Array

Source§

impl PrettyTree for Assignment

Source§

impl PrettyTree for AssignmentPack

Source§

impl PrettyTree for AssignmentPackComponent

Source§

impl PrettyTree for BinaryExpr

Source§

impl PrettyTree for BinaryOperator

Source§

impl PrettyTree for BreakExpr

Source§

impl PrettyTree for Catch

Source§

impl PrettyTree for Cell

Source§

impl PrettyTree for Collection

Source§

impl PrettyTree for Component

Source§

impl PrettyTree for ContinueExpr

Source§

impl PrettyTree for ControlFlow

Source§

impl PrettyTree for DebugExpr

Source§

impl PrettyTree for DebugKeyword

Source§

impl PrettyTree for DoStep

Source§

impl PrettyTree for ElseClause

Source§

impl PrettyTree for Empty

Source§

impl PrettyTree for Eoc

Source§

impl PrettyTree for Eof

Source§

impl PrettyTree for EscapeSequence

Source§

impl PrettyTree for EvaluatedAssignment

Source§

impl PrettyTree for ExceptDo

Source§

impl PrettyTree for Expr

Source§

impl PrettyTree for ExprPack

Source§

impl PrettyTree for FixedArity

Source§

impl PrettyTree for FloatLiteral

Source§

impl PrettyTree for ForLoop

Source§

impl PrettyTree for FromInstance

Source§

impl PrettyTree for GlobalBinding

Source§

impl PrettyTree for GlobalParallelAssignment

Source§

impl PrettyTree for Holder

Source§

impl PrettyTree for IfStatement

Source§

impl PrettyTree for Installation

Source§

impl PrettyTree for IntegerLiteral

Source§

impl PrettyTree for IterIn

Source§

impl PrettyTree for IterRange

Source§

impl PrettyTree for IterationDomain

Source§

impl PrettyTree for LambdaExpression

Source§

impl PrettyTree for LambdaParameters

Source§

impl PrettyTree for List

Source§

impl PrettyTree for ListStep

Source§

impl PrettyTree for Literal

Source§

impl PrettyTree for LocalBinding

Source§

impl PrettyTree for LocalParallelAssignment

Source§

impl PrettyTree for LoopBody

Source§

impl PrettyTree for MethodInstallation

Source§

impl PrettyTree for NewInstallation

Source§

impl PrettyTree for NewStatement

Source§

impl PrettyTree for OfClass

Source§

impl PrettyTree for OperatorAssignment

Source§

impl PrettyTree for OperatorExpr

Source§

impl PrettyTree for OperatorInstallation

Source§

impl PrettyTree for OptionExpression

Source§

impl PrettyTree for ParallelAssignment

Source§

impl PrettyTree for PostfixExpr

Source§

impl PrettyTree for PostfixOperator

Source§

impl PrettyTree for PrefixExpr

Source§

impl PrettyTree for PrefixOperator

Source§

impl PrettyTree for ProfilingExpr

Source§

impl PrettyTree for ProfilingModifier

Source§

impl PrettyTree for QuoteExpression

Source§

impl PrettyTree for QuoteSpecifier

Source§

impl PrettyTree for RangeBoundFrom

Source§

impl PrettyTree for RangeBoundTo

Source§

impl PrettyTree for RawStringContent

Source§

impl PrettyTree for RawStringElement

Source§

impl PrettyTree for RawStringLiteral

Source§

impl PrettyTree for ReturnExpr

Source§

impl PrettyTree for Sequence

Source§

impl PrettyTree for SimpleBinding

Source§

impl PrettyTree for SourceFile

Source§

impl PrettyTree for Statement

Source§

impl PrettyTree for StringContent

Source§

impl PrettyTree for StringElement

Source§

impl PrettyTree for StringLiteral

Source§

impl PrettyTree for Symbol

Source§

impl PrettyTree for ThenClause

Source§

impl PrettyTree for Throw

Source§

impl PrettyTree for Trap

Source§

impl PrettyTree for TryFallback

Source§

impl PrettyTree for TryStatement

Source§

impl PrettyTree for TypeAnnotation

Source§

impl PrettyTree for Variadic

Source§

impl PrettyTree for WhenCondition

Source§

impl PrettyTree for WhileLoop

Source§

impl PrettyTree for _Add

Source§

impl PrettyTree for _AddAdd

Source§

impl PrettyTree for _AddAddEql

Source§

impl PrettyTree for _AddEql

Source§

impl PrettyTree for _Amp

Source§

impl PrettyTree for _AmpEql

Source§

impl PrettyTree for _And

Source§

impl PrettyTree for _AngleBarDelimiter

Source§

impl PrettyTree for _Att

Source§

impl PrettyTree for _AttAtt

Source§

impl PrettyTree for _AttAttEql

Source§

impl PrettyTree for _AttAttQsm

Source§

impl PrettyTree for _AttAttQsmEql

Source§

impl PrettyTree for _AttEql

Source§

impl PrettyTree for _Bng

Source§

impl PrettyTree for _BngEql

Source§

impl PrettyTree for _Box

Source§

impl PrettyTree for _BoxEql

Source§

impl PrettyTree for _BraceDelimiter

Source§

impl PrettyTree for _BracketDelimiter

Source§

impl PrettyTree for _Break

Source§

impl PrettyTree for _Breakpoint

Source§

impl PrettyTree for _Bsl

Source§

impl PrettyTree for _BslBsl

Source§

impl PrettyTree for _BslBslEql

Source§

impl PrettyTree for _BslEql

Source§

impl PrettyTree for _Catch

Source§

impl PrettyTree for _Cdt

Source§

impl PrettyTree for _CdtEql

Source§

impl PrettyTree for _Cma

Source§

impl PrettyTree for _Col

Source§

impl PrettyTree for _ColEql

Source§

impl PrettyTree for _Continue

Source§

impl PrettyTree for _Crt

Source§

impl PrettyTree for _CrtBng

Source§

impl PrettyTree for _CrtCrt

Source§

impl PrettyTree for _CrtCrtEql

Source§

impl PrettyTree for _CrtEql

Source§

impl PrettyTree for _CrtGst

Source§

impl PrettyTree for _CrtGstEql

Source§

impl PrettyTree for _CrtLst

Source§

impl PrettyTree for _CrtLstEql

Source§

impl PrettyTree for _CrtMul

Source§

impl PrettyTree for _CrtMulMul

Source§

impl PrettyTree for _CrtMulMulEql

Source§

impl PrettyTree for _CrtTld

Source§

impl PrettyTree for _Do

Source§

impl PrettyTree for _Dot

Source§

impl PrettyTree for _DotDot

Source§

impl PrettyTree for _DotDotEql

Source§

impl PrettyTree for _DotDotLst

Source§

impl PrettyTree for _DotDotLstEql

Source§

impl PrettyTree for _DotQsm

Source§

impl PrettyTree for _ElapsedTime

Source§

impl PrettyTree for _ElapsedTiming

Source§

impl PrettyTree for _Else

Source§

impl PrettyTree for _Eql

Source§

impl PrettyTree for _EqlBngEql

Source§

impl PrettyTree for _EqlEql

Source§

impl PrettyTree for _EqlEqlEql

Source§

impl PrettyTree for _EqlEqlEqlGst

Source§

impl PrettyTree for _EqlEqlEqlGstEql

Source§

impl PrettyTree for _EqlEqlGst

Source§

impl PrettyTree for _EqlEqlGstEql

Source§

impl PrettyTree for _EqlGst

Source§

impl PrettyTree for _Except

Source§

impl PrettyTree for _Finish

Source§

impl PrettyTree for _For

Source§

impl PrettyTree for _From

Source§

impl PrettyTree for _Global

Source§

impl PrettyTree for _Graded

Source§

impl PrettyTree for _Gst

Source§

impl PrettyTree for _GstEql

Source§

impl PrettyTree for _GstGst

Source§

impl PrettyTree for _GstGstEql

Source§

impl PrettyTree for _Hsh

Source§

impl PrettyTree for _HshQsm

Source§

impl PrettyTree for _If

Source§

impl PrettyTree for _In

Source§

impl PrettyTree for _List

Source§

impl PrettyTree for _Local

Source§

impl PrettyTree for _Lst

Source§

impl PrettyTree for _LstEql

Source§

impl PrettyTree for _LstEqlEql

Source§

impl PrettyTree for _LstEqlEqlEql

Source§

impl PrettyTree for _LstEqlEqlGst

Source§

impl PrettyTree for _LstEqlEqlGstEql

Source§

impl PrettyTree for _LstLst

Source§

impl PrettyTree for _LstLstEql

Source§

impl PrettyTree for _LstSub

Source§

impl PrettyTree for _Mod

Source§

impl PrettyTree for _ModEql

Source§

impl PrettyTree for _Mul

Source§

impl PrettyTree for _MulEql

Source§

impl PrettyTree for _MulMul

Source§

impl PrettyTree for _MulMulEql

Source§

impl PrettyTree for _New

Source§

impl PrettyTree for _Not

Source§

impl PrettyTree for _Of

Source§

impl PrettyTree for _Or

Source§

impl PrettyTree for _ParenthesisDelimiter

Source§

impl PrettyTree for _Pip

Source§

impl PrettyTree for _PipEql

Source§

impl PrettyTree for _PipPip

Source§

impl PrettyTree for _PipPipEql

Source§

impl PrettyTree for _PipSub

Source§

impl PrettyTree for _PipSubEql

Source§

impl PrettyTree for _PipUbs

Source§

impl PrettyTree for _PipUbsEql

Source§

impl PrettyTree for _Profile

Source§

impl PrettyTree for _Qsm

Source§

impl PrettyTree for _QsmQsm

Source§

impl PrettyTree for _QsmQsmEql

Source§

impl PrettyTree for _Return

Source§

impl PrettyTree for _Scl

Source§

impl PrettyTree for _Sfp

Source§

impl PrettyTree for _SfpEql

Source§

impl PrettyTree for _Shield

Source§

impl PrettyTree for _Slh

Source§

impl PrettyTree for _SlhEql

Source§

impl PrettyTree for _SlhSlh

Source§

impl PrettyTree for _SlhSlhEql

Source§

impl PrettyTree for _Step

Source§

impl PrettyTree for _Sub

Source§

impl PrettyTree for _SubEql

Source§

impl PrettyTree for _SubGst

Source§

impl PrettyTree for _Symbol

Source§

impl PrettyTree for _Test

Source§

impl PrettyTree for _Then

Source§

impl PrettyTree for _ThreadLocal

Source§

impl PrettyTree for _ThreadVariable

Source§

impl PrettyTree for _Throw

Source§

impl PrettyTree for _Time

Source§

impl PrettyTree for _Timing

Source§

impl PrettyTree for _Tld

Source§

impl PrettyTree for _TldEql

Source§

impl PrettyTree for _To

Source§

impl PrettyTree for _Trap

Source§

impl PrettyTree for _Try

Source§

impl PrettyTree for _Ubs

Source§

impl PrettyTree for _UbsBng

Source§

impl PrettyTree for _UbsEql

Source§

impl PrettyTree for _UbsGst

Source§

impl PrettyTree for _UbsGstEql

Source§

impl PrettyTree for _UbsLst

Source§

impl PrettyTree for _UbsLstEql

Source§

impl PrettyTree for _UbsMul

Source§

impl PrettyTree for _UbsTld

Source§

impl PrettyTree for _When

Source§

impl PrettyTree for _While

Source§

impl PrettyTree for _Xor

Source§

impl<S, D> PrettyTree for Delimited<S, D>

Source§

impl<T, P> PrettyTree for Punctuated<T, P>