Skip to main content

PyFormatContext

Struct PyFormatContext 

Source
pub struct PyFormatContext<'a> { /* private fields */ }

Trait Implementations§

Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for BoolOp

Source§

type Format<'a> = FormatRefWithRule<'a, BoolOp, FormatBoolOp, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for CmpOp

Source§

type Format<'a> = FormatRefWithRule<'a, CmpOp, FormatCmpOp, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Operator

Source§

type Format<'a> = FormatRefWithRule<'a, Operator, FormatOperator, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Expr

Source§

type Format<'a> = FormatRefWithRule<'a, Expr, FormatExpr, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ModModule

Source§

type Format<'a> = FormatRefWithRule<'a, ModModule, FormatModModule, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ModExpression

Source§

type Format<'a> = FormatRefWithRule<'a, ModExpression, FormatModExpression, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtFunctionDef

Source§

type Format<'a> = FormatRefWithRule<'a, StmtFunctionDef, FormatStmtFunctionDef, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtClassDef

Source§

type Format<'a> = FormatRefWithRule<'a, StmtClassDef, FormatStmtClassDef, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtReturn

Source§

type Format<'a> = FormatRefWithRule<'a, StmtReturn, FormatStmtReturn, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtDelete

Source§

type Format<'a> = FormatRefWithRule<'a, StmtDelete, FormatStmtDelete, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtTypeAlias

Source§

type Format<'a> = FormatRefWithRule<'a, StmtTypeAlias, FormatStmtTypeAlias, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAssign

Source§

type Format<'a> = FormatRefWithRule<'a, StmtAssign, FormatStmtAssign, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAugAssign

Source§

type Format<'a> = FormatRefWithRule<'a, StmtAugAssign, FormatStmtAugAssign, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAnnAssign

Source§

type Format<'a> = FormatRefWithRule<'a, StmtAnnAssign, FormatStmtAnnAssign, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtFor

Source§

type Format<'a> = FormatRefWithRule<'a, StmtFor, FormatStmtFor, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtWhile

Source§

type Format<'a> = FormatRefWithRule<'a, StmtWhile, FormatStmtWhile, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtIf

Source§

type Format<'a> = FormatRefWithRule<'a, StmtIf, FormatStmtIf, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtWith

Source§

type Format<'a> = FormatRefWithRule<'a, StmtWith, FormatStmtWith, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtMatch

Source§

type Format<'a> = FormatRefWithRule<'a, StmtMatch, FormatStmtMatch, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtRaise

Source§

type Format<'a> = FormatRefWithRule<'a, StmtRaise, FormatStmtRaise, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtTry

Source§

type Format<'a> = FormatRefWithRule<'a, StmtTry, FormatStmtTry, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAssert

Source§

type Format<'a> = FormatRefWithRule<'a, StmtAssert, FormatStmtAssert, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtImport

Source§

type Format<'a> = FormatRefWithRule<'a, StmtImport, FormatStmtImport, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtImportFrom

Source§

type Format<'a> = FormatRefWithRule<'a, StmtImportFrom, FormatStmtImportFrom, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtGlobal

Source§

type Format<'a> = FormatRefWithRule<'a, StmtGlobal, FormatStmtGlobal, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtNonlocal

Source§

type Format<'a> = FormatRefWithRule<'a, StmtNonlocal, FormatStmtNonlocal, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtExpr

Source§

type Format<'a> = FormatRefWithRule<'a, StmtExpr, FormatStmtExpr, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtPass

Source§

type Format<'a> = FormatRefWithRule<'a, StmtPass, FormatStmtPass, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtBreak

Source§

type Format<'a> = FormatRefWithRule<'a, StmtBreak, FormatStmtBreak, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtContinue

Source§

type Format<'a> = FormatRefWithRule<'a, StmtContinue, FormatStmtContinue, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtIpyEscapeCommand

Source§

type Format<'a> = FormatRefWithRule<'a, StmtIpyEscapeCommand, FormatStmtIpyEscapeCommand, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBoolOp

Source§

type Format<'a> = FormatRefWithRule<'a, ExprBoolOp, FormatExprBoolOp, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNamed

Source§

type Format<'a> = FormatRefWithRule<'a, ExprNamed, FormatExprNamed, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBinOp

Source§

type Format<'a> = FormatRefWithRule<'a, ExprBinOp, FormatExprBinOp, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprUnaryOp

Source§

type Format<'a> = FormatRefWithRule<'a, ExprUnaryOp, FormatExprUnaryOp, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprLambda

Source§

type Format<'a> = FormatRefWithRule<'a, ExprLambda, FormatExprLambda, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprIf

Source§

type Format<'a> = FormatRefWithRule<'a, ExprIf, FormatExprIf, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprDict

Source§

type Format<'a> = FormatRefWithRule<'a, ExprDict, FormatExprDict, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSet

Source§

type Format<'a> = FormatRefWithRule<'a, ExprSet, FormatExprSet, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprListComp

Source§

type Format<'a> = FormatRefWithRule<'a, ExprListComp, FormatExprListComp, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSetComp

Source§

type Format<'a> = FormatRefWithRule<'a, ExprSetComp, FormatExprSetComp, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprDictComp

Source§

type Format<'a> = FormatRefWithRule<'a, ExprDictComp, FormatExprDictComp, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprGenerator

Source§

type Format<'a> = FormatRefWithRule<'a, ExprGenerator, FormatExprGenerator, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprAwait

Source§

type Format<'a> = FormatRefWithRule<'a, ExprAwait, FormatExprAwait, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprYield

Source§

type Format<'a> = FormatRefWithRule<'a, ExprYield, FormatExprYield, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprYieldFrom

Source§

type Format<'a> = FormatRefWithRule<'a, ExprYieldFrom, FormatExprYieldFrom, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprCompare

Source§

type Format<'a> = FormatRefWithRule<'a, ExprCompare, FormatExprCompare, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprCall

Source§

type Format<'a> = FormatRefWithRule<'a, ExprCall, FormatExprCall, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprFString

Source§

type Format<'a> = FormatRefWithRule<'a, ExprFString, FormatExprFString, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprTString

Source§

type Format<'a> = FormatRefWithRule<'a, ExprTString, FormatExprTString, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprStringLiteral

Source§

type Format<'a> = FormatRefWithRule<'a, ExprStringLiteral, FormatExprStringLiteral, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBytesLiteral

Source§

type Format<'a> = FormatRefWithRule<'a, ExprBytesLiteral, FormatExprBytesLiteral, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNumberLiteral

Source§

type Format<'a> = FormatRefWithRule<'a, ExprNumberLiteral, FormatExprNumberLiteral, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBooleanLiteral

Source§

type Format<'a> = FormatRefWithRule<'a, ExprBooleanLiteral, FormatExprBooleanLiteral, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNoneLiteral

Source§

type Format<'a> = FormatRefWithRule<'a, ExprNoneLiteral, FormatExprNoneLiteral, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprEllipsisLiteral

Source§

type Format<'a> = FormatRefWithRule<'a, ExprEllipsisLiteral, FormatExprEllipsisLiteral, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprAttribute

Source§

type Format<'a> = FormatRefWithRule<'a, ExprAttribute, FormatExprAttribute, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSubscript

Source§

type Format<'a> = FormatRefWithRule<'a, ExprSubscript, FormatExprSubscript, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprStarred

Source§

type Format<'a> = FormatRefWithRule<'a, ExprStarred, FormatExprStarred, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprName

Source§

type Format<'a> = FormatRefWithRule<'a, ExprName, FormatExprName, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprList

Source§

type Format<'a> = FormatRefWithRule<'a, ExprList, FormatExprList, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprTuple

Source§

type Format<'a> = FormatRefWithRule<'a, ExprTuple, FormatExprTuple, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSlice

Source§

type Format<'a> = FormatRefWithRule<'a, ExprSlice, FormatExprSlice, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprIpyEscapeCommand

Source§

type Format<'a> = FormatRefWithRule<'a, ExprIpyEscapeCommand, FormatExprIpyEscapeCommand, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExceptHandlerExceptHandler

Source§

type Format<'a> = FormatRefWithRule<'a, ExceptHandlerExceptHandler, FormatExceptHandlerExceptHandler, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchValue

Source§

type Format<'a> = FormatRefWithRule<'a, PatternMatchValue, FormatPatternMatchValue, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchSingleton

Source§

type Format<'a> = FormatRefWithRule<'a, PatternMatchSingleton, FormatPatternMatchSingleton, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchSequence

Source§

type Format<'a> = FormatRefWithRule<'a, PatternMatchSequence, FormatPatternMatchSequence, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchMapping

Source§

type Format<'a> = FormatRefWithRule<'a, PatternMatchMapping, FormatPatternMatchMapping, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchClass

Source§

type Format<'a> = FormatRefWithRule<'a, PatternMatchClass, FormatPatternMatchClass, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchStar

Source§

type Format<'a> = FormatRefWithRule<'a, PatternMatchStar, FormatPatternMatchStar, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchAs

Source§

type Format<'a> = FormatRefWithRule<'a, PatternMatchAs, FormatPatternMatchAs, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchOr

Source§

type Format<'a> = FormatRefWithRule<'a, PatternMatchOr, FormatPatternMatchOr, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamTypeVar

Source§

type Format<'a> = FormatRefWithRule<'a, TypeParamTypeVar, FormatTypeParamTypeVar, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamTypeVarTuple

Source§

type Format<'a> = FormatRefWithRule<'a, TypeParamTypeVarTuple, FormatTypeParamTypeVarTuple, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamParamSpec

Source§

type Format<'a> = FormatRefWithRule<'a, TypeParamParamSpec, FormatTypeParamParamSpec, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternArguments

Source§

type Format<'a> = FormatRefWithRule<'a, PatternArguments, FormatPatternArguments, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternKeyword

Source§

type Format<'a> = FormatRefWithRule<'a, PatternKeyword, FormatPatternKeyword, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Comprehension

Source§

type Format<'a> = FormatRefWithRule<'a, Comprehension, FormatComprehension, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Arguments

Source§

type Format<'a> = FormatRefWithRule<'a, Arguments, FormatArguments, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Parameters

Source§

type Format<'a> = FormatRefWithRule<'a, Parameters, FormatParameters, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Parameter

Source§

type Format<'a> = FormatRefWithRule<'a, Parameter, FormatParameter, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ParameterWithDefault

Source§

type Format<'a> = FormatRefWithRule<'a, ParameterWithDefault, FormatParameterWithDefault, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Keyword

Source§

type Format<'a> = FormatRefWithRule<'a, Keyword, FormatKeyword, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Alias

Source§

type Format<'a> = FormatRefWithRule<'a, Alias, FormatAlias, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for WithItem

Source§

type Format<'a> = FormatRefWithRule<'a, WithItem, FormatWithItem, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for MatchCase

Source§

type Format<'a> = FormatRefWithRule<'a, MatchCase, FormatMatchCase, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Decorator

Source§

type Format<'a> = FormatRefWithRule<'a, Decorator, FormatDecorator, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ElifElseClause

Source§

type Format<'a> = FormatRefWithRule<'a, ElifElseClause, FormatElifElseClause, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParams

Source§

type Format<'a> = FormatRefWithRule<'a, TypeParams, FormatTypeParams, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for FString

Source§

type Format<'a> = FormatRefWithRule<'a, FString, FormatFString, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for TString

Source§

type Format<'a> = FormatRefWithRule<'a, TString, FormatTString, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for StringLiteral

Source§

type Format<'a> = FormatRefWithRule<'a, StringLiteral, FormatStringLiteral, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for BytesLiteral

Source§

type Format<'a> = FormatRefWithRule<'a, BytesLiteral, FormatBytesLiteral, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Mod

Source§

type Format<'a> = FormatRefWithRule<'a, Mod, FormatMod, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Identifier

Source§

type Format<'a> = FormatRefWithRule<'a, Identifier, FormatIdentifier, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Pattern

Source§

type Format<'a> = FormatRefWithRule<'a, Pattern, FormatPattern, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for ExceptHandler

Source§

type Format<'a> = FormatRefWithRule<'a, ExceptHandler, FormatExceptHandler, PyFormatContext<'ast>> where Self: 'a

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Suite

Source§

type Format<'a> = FormatRefWithRule<'a, ThinVec<Stmt>, FormatSuite, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for Stmt

Source§

type Format<'a> = FormatRefWithRule<'a, Stmt, FormatStmt, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParam

Source§

type Format<'a> = FormatRefWithRule<'a, TypeParam, FormatTypeParam, PyFormatContext<'ast>>

Source§

fn format(&self) -> Self::Format<'_>

Returns an object that is able to format this object.
Source§

impl Debug for PyFormatContext<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Format<PyFormatContext<'_>> for AnyStringPrefix

Source§

fn fmt(&self, f: &mut Formatter<'_, PyFormatContext<'_>>) -> FormatResult<()>

Formats the object using the given formatter.
Source§

impl FormatContext for PyFormatContext<'_>

Source§

type Options = PyFormatOptions

Source§

fn options(&self) -> &Self::Options

Returns the formatting options
Source§

fn source_code(&self) -> SourceCode<'_>

Returns the source code from the document that gets formatted.
Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for BoolOp

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for CmpOp

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Operator

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Expr

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ModModule

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ModExpression

Source§

type Format = FormatOwnedWithRule<ModExpression, FormatModExpression, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtFunctionDef

Source§

type Format = FormatOwnedWithRule<StmtFunctionDef, FormatStmtFunctionDef, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtClassDef

Source§

type Format = FormatOwnedWithRule<StmtClassDef, FormatStmtClassDef, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtReturn

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtDelete

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtTypeAlias

Source§

type Format = FormatOwnedWithRule<StmtTypeAlias, FormatStmtTypeAlias, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAssign

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAugAssign

Source§

type Format = FormatOwnedWithRule<StmtAugAssign, FormatStmtAugAssign, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAnnAssign

Source§

type Format = FormatOwnedWithRule<StmtAnnAssign, FormatStmtAnnAssign, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtFor

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtWhile

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtIf

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtWith

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtMatch

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtRaise

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtTry

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAssert

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtImport

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtImportFrom

Source§

type Format = FormatOwnedWithRule<StmtImportFrom, FormatStmtImportFrom, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtGlobal

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtNonlocal

Source§

type Format = FormatOwnedWithRule<StmtNonlocal, FormatStmtNonlocal, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtExpr

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtPass

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtBreak

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtContinue

Source§

type Format = FormatOwnedWithRule<StmtContinue, FormatStmtContinue, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtIpyEscapeCommand

Source§

type Format = FormatOwnedWithRule<StmtIpyEscapeCommand, FormatStmtIpyEscapeCommand, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBoolOp

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNamed

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBinOp

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprUnaryOp

Source§

type Format = FormatOwnedWithRule<ExprUnaryOp, FormatExprUnaryOp, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprLambda

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprIf

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprDict

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSet

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprListComp

Source§

type Format = FormatOwnedWithRule<ExprListComp, FormatExprListComp, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSetComp

Source§

type Format = FormatOwnedWithRule<ExprSetComp, FormatExprSetComp, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprDictComp

Source§

type Format = FormatOwnedWithRule<ExprDictComp, FormatExprDictComp, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprGenerator

Source§

type Format = FormatOwnedWithRule<ExprGenerator, FormatExprGenerator, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprAwait

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprYield

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprYieldFrom

Source§

type Format = FormatOwnedWithRule<ExprYieldFrom, FormatExprYieldFrom, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprCompare

Source§

type Format = FormatOwnedWithRule<ExprCompare, FormatExprCompare, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprCall

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprFString

Source§

type Format = FormatOwnedWithRule<ExprFString, FormatExprFString, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprTString

Source§

type Format = FormatOwnedWithRule<ExprTString, FormatExprTString, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprStringLiteral

Source§

type Format = FormatOwnedWithRule<ExprStringLiteral, FormatExprStringLiteral, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBytesLiteral

Source§

type Format = FormatOwnedWithRule<ExprBytesLiteral, FormatExprBytesLiteral, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNumberLiteral

Source§

type Format = FormatOwnedWithRule<ExprNumberLiteral, FormatExprNumberLiteral, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBooleanLiteral

Source§

type Format = FormatOwnedWithRule<ExprBooleanLiteral, FormatExprBooleanLiteral, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNoneLiteral

Source§

type Format = FormatOwnedWithRule<ExprNoneLiteral, FormatExprNoneLiteral, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprEllipsisLiteral

Source§

type Format = FormatOwnedWithRule<ExprEllipsisLiteral, FormatExprEllipsisLiteral, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprAttribute

Source§

type Format = FormatOwnedWithRule<ExprAttribute, FormatExprAttribute, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSubscript

Source§

type Format = FormatOwnedWithRule<ExprSubscript, FormatExprSubscript, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprStarred

Source§

type Format = FormatOwnedWithRule<ExprStarred, FormatExprStarred, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprName

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprList

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprTuple

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSlice

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprIpyEscapeCommand

Source§

type Format = FormatOwnedWithRule<ExprIpyEscapeCommand, FormatExprIpyEscapeCommand, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExceptHandlerExceptHandler

Source§

type Format = FormatOwnedWithRule<ExceptHandlerExceptHandler, FormatExceptHandlerExceptHandler, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchValue

Source§

type Format = FormatOwnedWithRule<PatternMatchValue, FormatPatternMatchValue, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchSingleton

Source§

type Format = FormatOwnedWithRule<PatternMatchSingleton, FormatPatternMatchSingleton, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchSequence

Source§

type Format = FormatOwnedWithRule<PatternMatchSequence, FormatPatternMatchSequence, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchMapping

Source§

type Format = FormatOwnedWithRule<PatternMatchMapping, FormatPatternMatchMapping, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchClass

Source§

type Format = FormatOwnedWithRule<PatternMatchClass, FormatPatternMatchClass, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchStar

Source§

type Format = FormatOwnedWithRule<PatternMatchStar, FormatPatternMatchStar, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchAs

Source§

type Format = FormatOwnedWithRule<PatternMatchAs, FormatPatternMatchAs, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchOr

Source§

type Format = FormatOwnedWithRule<PatternMatchOr, FormatPatternMatchOr, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamTypeVar

Source§

type Format = FormatOwnedWithRule<TypeParamTypeVar, FormatTypeParamTypeVar, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamTypeVarTuple

Source§

type Format = FormatOwnedWithRule<TypeParamTypeVarTuple, FormatTypeParamTypeVarTuple, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamParamSpec

Source§

type Format = FormatOwnedWithRule<TypeParamParamSpec, FormatTypeParamParamSpec, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternArguments

Source§

type Format = FormatOwnedWithRule<PatternArguments, FormatPatternArguments, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternKeyword

Source§

type Format = FormatOwnedWithRule<PatternKeyword, FormatPatternKeyword, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Comprehension

Source§

type Format = FormatOwnedWithRule<Comprehension, FormatComprehension, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Arguments

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Parameters

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Parameter

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ParameterWithDefault

Source§

type Format = FormatOwnedWithRule<ParameterWithDefault, FormatParameterWithDefault, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Keyword

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Alias

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for WithItem

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for MatchCase

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Decorator

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for ElifElseClause

Source§

type Format = FormatOwnedWithRule<ElifElseClause, FormatElifElseClause, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParams

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for FString

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for TString

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for StringLiteral

Source§

type Format = FormatOwnedWithRule<StringLiteral, FormatStringLiteral, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for BytesLiteral

Source§

type Format = FormatOwnedWithRule<BytesLiteral, FormatBytesLiteral, PyFormatContext<'ast>>

Source§

fn into_format(self) -> Self::Format

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Mod

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Identifier

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Pattern

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Suite

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for Stmt

Source§

impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParam

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for PyFormatContext<'a>

§

impl<'a> !Send for PyFormatContext<'a>

§

impl<'a> !Sync for PyFormatContext<'a>

§

impl<'a> !UnwindSafe for PyFormatContext<'a>

§

impl<'a> Freeze for PyFormatContext<'a>

§

impl<'a> Unpin for PyFormatContext<'a>

§

impl<'a> UnsafeUnpin for PyFormatContext<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Lookup<T> for T

Source§

fn into_owned(self) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more