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. Semantic category enums remain visible because they define visitor dispatch, while generic containers are transparent 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§

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

Source§

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

Source§

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

Implementors§

Source§

impl PrettyTree for Adj

Source§

impl PrettyTree for AngleBarList

Source§

impl PrettyTree for ArgumentListContent

Source§

impl PrettyTree for ArgumentListContentPack

Source§

impl PrettyTree for Array

Source§

impl PrettyTree for AssignmentArgument

Source§

impl PrettyTree for AssignmentList

Source§

impl PrettyTree for AssignmentListContent

Source§

impl PrettyTree for AssignmentListContentPack

Source§

impl PrettyTree for AugmentedOperator

Source§

impl PrettyTree for BOF

Source§

impl PrettyTree for BinaryOperator

Source§

impl PrettyTree for Cell

Source§

impl PrettyTree for CommentTrivia

Source§

impl PrettyTree for Component

Source§

impl PrettyTree for DoStep

Source§

impl PrettyTree for EOC

Source§

impl PrettyTree for EOF

Source§

impl PrettyTree for ElseClause

Source§

impl PrettyTree for Empty

Source§

impl PrettyTree for EscapeSequence

Source§

impl PrettyTree for Expr

Source§

impl PrettyTree for ExprAssign

Source§

impl PrettyTree for ExprAssignAugmented

Source§

impl PrettyTree for ExprAssignEvaluated

Source§

impl PrettyTree for ExprAssignInstall

Source§

impl PrettyTree for ExprAssignInstallMethod

Source§

impl PrettyTree for ExprAssignInstallNew

Source§

impl PrettyTree for ExprAssignInstallOp

Source§

impl PrettyTree for ExprAssignOp

Source§

impl PrettyTree for ExprAssignParallel

Source§

impl PrettyTree for ExprAssignParallelGlobal

Source§

impl PrettyTree for ExprAssignParallelLocal

Source§

impl PrettyTree for ExprAssignSimple

Source§

impl PrettyTree for ExprAssignSimpleGlobal

Source§

impl PrettyTree for ExprAssignSimpleLocal

Source§

impl PrettyTree for ExprCatch

Source§

impl PrettyTree for ExprCollection

Source§

impl PrettyTree for ExprControl

Source§

impl PrettyTree for ExprControlBreak

Source§

impl PrettyTree for ExprControlContinue

Source§

impl PrettyTree for ExprControlReturn

Source§

impl PrettyTree for ExprDebug

Source§

impl PrettyTree for ExprDebugBreakpoint

Source§

impl PrettyTree for ExprDebugFinish

Source§

impl PrettyTree for ExprDebugShield

Source§

impl PrettyTree for ExprDebugStep

Source§

impl PrettyTree for ExprDebugTest

Source§

impl PrettyTree for ExprFor

Source§

impl PrettyTree for ExprForBare

Source§

impl PrettyTree for ExprForIn

Source§

impl PrettyTree for ExprForRange

Source§

impl PrettyTree for ExprIf

Source§

impl PrettyTree for ExprLambda

Source§

impl PrettyTree for ExprLambdaList

Source§

impl PrettyTree for ExprLambdaVariadic

Source§

impl PrettyTree for ExprLiteral

Source§

impl PrettyTree for ExprNew

Source§

impl PrettyTree for ExprOp

Source§

impl PrettyTree for ExprOpBin

Source§

impl PrettyTree for ExprOpBinAdj

Source§

impl PrettyTree for ExprOpBinIndex

Source§

impl PrettyTree for ExprOpBinMember

Source§

impl PrettyTree for ExprOpBinMemberDot

Source§

impl PrettyTree for ExprOpBinMemberOptional

Source§

impl PrettyTree for ExprOpBinRegular

Source§

impl PrettyTree for ExprOpPostfix

Source§

impl PrettyTree for ExprOpPrefix

Source§

impl PrettyTree for ExprOption

Source§

impl PrettyTree for ExprPack

Source§

impl PrettyTree for ExprProfile

Source§

impl PrettyTree for ExprProfileElapsedTime

Source§

impl PrettyTree for ExprProfileElapsedTiming

Source§

impl PrettyTree for ExprProfileProfile

Source§

impl PrettyTree for ExprProfileTime

Source§

impl PrettyTree for ExprProfileTiming

Source§

impl PrettyTree for ExprQuote

Source§

impl PrettyTree for ExprQuoteGlobal

Source§

impl PrettyTree for ExprQuoteLocal

Source§

impl PrettyTree for ExprQuoteSymbol

Source§

impl PrettyTree for ExprQuoteThreadLocal

Source§

impl PrettyTree for ExprQuoteThreadVariable

Source§

impl PrettyTree for ExprThrow

Source§

impl PrettyTree for ExprTrap

Source§

impl PrettyTree for ExprTry

Source§

impl PrettyTree for ExprWhile

Source§

impl PrettyTree for FloatLiteral

Source§

impl PrettyTree for FromInstance

Source§

impl PrettyTree for Holder

Source§

impl PrettyTree for IntegerLiteral

Source§

impl PrettyTree for List

Source§

impl PrettyTree for ListStep

Source§

impl PrettyTree for LoopBody

Source§

impl PrettyTree for OfClass

Source§

impl PrettyTree for PackedContent

Source§

impl PrettyTree for PostfixOperator

Source§

impl PrettyTree for PrefixOperator

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 Sequence

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 Trivia

Source§

impl PrettyTree for TryFallback

Source§

impl PrettyTree for TryFallbackExcept

Source§

impl PrettyTree for TypeAnnotation

Source§

impl PrettyTree for WhenCondition

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 _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 _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 _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>