pub struct PyFormatContext<'a> { /* private fields */ }Trait Implementations§
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for BoolOp
impl<'ast> AsFormat<PyFormatContext<'ast>> for BoolOp
type Format<'a> = FormatRefWithRule<'a, BoolOp, FormatBoolOp, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for CmpOp
impl<'ast> AsFormat<PyFormatContext<'ast>> for CmpOp
type Format<'a> = FormatRefWithRule<'a, CmpOp, FormatCmpOp, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Operator
impl<'ast> AsFormat<PyFormatContext<'ast>> for Operator
type Format<'a> = FormatRefWithRule<'a, Operator, FormatOperator, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Expr
impl<'ast> AsFormat<PyFormatContext<'ast>> for Expr
type Format<'a> = FormatRefWithRule<'a, Expr, FormatExpr, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ModModule
impl<'ast> AsFormat<PyFormatContext<'ast>> for ModModule
type Format<'a> = FormatRefWithRule<'a, ModModule, FormatModModule, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ModExpression
impl<'ast> AsFormat<PyFormatContext<'ast>> for ModExpression
type Format<'a> = FormatRefWithRule<'a, ModExpression, FormatModExpression, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtFunctionDef
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtFunctionDef
type Format<'a> = FormatRefWithRule<'a, StmtFunctionDef, FormatStmtFunctionDef, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtClassDef
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtClassDef
type Format<'a> = FormatRefWithRule<'a, StmtClassDef, FormatStmtClassDef, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtReturn
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtReturn
type Format<'a> = FormatRefWithRule<'a, StmtReturn, FormatStmtReturn, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtDelete
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtDelete
type Format<'a> = FormatRefWithRule<'a, StmtDelete, FormatStmtDelete, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtTypeAlias
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtTypeAlias
type Format<'a> = FormatRefWithRule<'a, StmtTypeAlias, FormatStmtTypeAlias, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAssign
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAssign
type Format<'a> = FormatRefWithRule<'a, StmtAssign, FormatStmtAssign, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAugAssign
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAugAssign
type Format<'a> = FormatRefWithRule<'a, StmtAugAssign, FormatStmtAugAssign, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAnnAssign
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAnnAssign
type Format<'a> = FormatRefWithRule<'a, StmtAnnAssign, FormatStmtAnnAssign, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtFor
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtFor
type Format<'a> = FormatRefWithRule<'a, StmtFor, FormatStmtFor, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtWhile
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtWhile
type Format<'a> = FormatRefWithRule<'a, StmtWhile, FormatStmtWhile, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtIf
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtIf
type Format<'a> = FormatRefWithRule<'a, StmtIf, FormatStmtIf, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtWith
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtWith
type Format<'a> = FormatRefWithRule<'a, StmtWith, FormatStmtWith, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtMatch
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtMatch
type Format<'a> = FormatRefWithRule<'a, StmtMatch, FormatStmtMatch, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtRaise
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtRaise
type Format<'a> = FormatRefWithRule<'a, StmtRaise, FormatStmtRaise, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtTry
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtTry
type Format<'a> = FormatRefWithRule<'a, StmtTry, FormatStmtTry, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAssert
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtAssert
type Format<'a> = FormatRefWithRule<'a, StmtAssert, FormatStmtAssert, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtImport
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtImport
type Format<'a> = FormatRefWithRule<'a, StmtImport, FormatStmtImport, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtImportFrom
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtImportFrom
type Format<'a> = FormatRefWithRule<'a, StmtImportFrom, FormatStmtImportFrom, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtGlobal
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtGlobal
type Format<'a> = FormatRefWithRule<'a, StmtGlobal, FormatStmtGlobal, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtNonlocal
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtNonlocal
type Format<'a> = FormatRefWithRule<'a, StmtNonlocal, FormatStmtNonlocal, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtExpr
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtExpr
type Format<'a> = FormatRefWithRule<'a, StmtExpr, FormatStmtExpr, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtPass
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtPass
type Format<'a> = FormatRefWithRule<'a, StmtPass, FormatStmtPass, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtBreak
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtBreak
type Format<'a> = FormatRefWithRule<'a, StmtBreak, FormatStmtBreak, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtContinue
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtContinue
type Format<'a> = FormatRefWithRule<'a, StmtContinue, FormatStmtContinue, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtIpyEscapeCommand
impl<'ast> AsFormat<PyFormatContext<'ast>> for StmtIpyEscapeCommand
type Format<'a> = FormatRefWithRule<'a, StmtIpyEscapeCommand, FormatStmtIpyEscapeCommand, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBoolOp
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBoolOp
type Format<'a> = FormatRefWithRule<'a, ExprBoolOp, FormatExprBoolOp, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNamed
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNamed
type Format<'a> = FormatRefWithRule<'a, ExprNamed, FormatExprNamed, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBinOp
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBinOp
type Format<'a> = FormatRefWithRule<'a, ExprBinOp, FormatExprBinOp, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprUnaryOp
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprUnaryOp
type Format<'a> = FormatRefWithRule<'a, ExprUnaryOp, FormatExprUnaryOp, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprLambda
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprLambda
type Format<'a> = FormatRefWithRule<'a, ExprLambda, FormatExprLambda, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprIf
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprIf
type Format<'a> = FormatRefWithRule<'a, ExprIf, FormatExprIf, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprDict
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprDict
type Format<'a> = FormatRefWithRule<'a, ExprDict, FormatExprDict, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSet
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSet
type Format<'a> = FormatRefWithRule<'a, ExprSet, FormatExprSet, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprListComp
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprListComp
type Format<'a> = FormatRefWithRule<'a, ExprListComp, FormatExprListComp, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSetComp
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSetComp
type Format<'a> = FormatRefWithRule<'a, ExprSetComp, FormatExprSetComp, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprDictComp
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprDictComp
type Format<'a> = FormatRefWithRule<'a, ExprDictComp, FormatExprDictComp, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprGenerator
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprGenerator
type Format<'a> = FormatRefWithRule<'a, ExprGenerator, FormatExprGenerator, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprAwait
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprAwait
type Format<'a> = FormatRefWithRule<'a, ExprAwait, FormatExprAwait, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprYield
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprYield
type Format<'a> = FormatRefWithRule<'a, ExprYield, FormatExprYield, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprYieldFrom
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprYieldFrom
type Format<'a> = FormatRefWithRule<'a, ExprYieldFrom, FormatExprYieldFrom, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprCompare
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprCompare
type Format<'a> = FormatRefWithRule<'a, ExprCompare, FormatExprCompare, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprCall
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprCall
type Format<'a> = FormatRefWithRule<'a, ExprCall, FormatExprCall, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprFString
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprFString
type Format<'a> = FormatRefWithRule<'a, ExprFString, FormatExprFString, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprTString
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprTString
type Format<'a> = FormatRefWithRule<'a, ExprTString, FormatExprTString, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprStringLiteral
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprStringLiteral
type Format<'a> = FormatRefWithRule<'a, ExprStringLiteral, FormatExprStringLiteral, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBytesLiteral
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBytesLiteral
type Format<'a> = FormatRefWithRule<'a, ExprBytesLiteral, FormatExprBytesLiteral, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNumberLiteral
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNumberLiteral
type Format<'a> = FormatRefWithRule<'a, ExprNumberLiteral, FormatExprNumberLiteral, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBooleanLiteral
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprBooleanLiteral
type Format<'a> = FormatRefWithRule<'a, ExprBooleanLiteral, FormatExprBooleanLiteral, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNoneLiteral
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprNoneLiteral
type Format<'a> = FormatRefWithRule<'a, ExprNoneLiteral, FormatExprNoneLiteral, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprEllipsisLiteral
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprEllipsisLiteral
type Format<'a> = FormatRefWithRule<'a, ExprEllipsisLiteral, FormatExprEllipsisLiteral, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprAttribute
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprAttribute
type Format<'a> = FormatRefWithRule<'a, ExprAttribute, FormatExprAttribute, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSubscript
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSubscript
type Format<'a> = FormatRefWithRule<'a, ExprSubscript, FormatExprSubscript, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprStarred
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprStarred
type Format<'a> = FormatRefWithRule<'a, ExprStarred, FormatExprStarred, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprName
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprName
type Format<'a> = FormatRefWithRule<'a, ExprName, FormatExprName, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprList
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprList
type Format<'a> = FormatRefWithRule<'a, ExprList, FormatExprList, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprTuple
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprTuple
type Format<'a> = FormatRefWithRule<'a, ExprTuple, FormatExprTuple, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSlice
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprSlice
type Format<'a> = FormatRefWithRule<'a, ExprSlice, FormatExprSlice, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprIpyEscapeCommand
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExprIpyEscapeCommand
type Format<'a> = FormatRefWithRule<'a, ExprIpyEscapeCommand, FormatExprIpyEscapeCommand, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExceptHandlerExceptHandler
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExceptHandlerExceptHandler
type Format<'a> = FormatRefWithRule<'a, ExceptHandlerExceptHandler, FormatExceptHandlerExceptHandler, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchValue
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchValue
type Format<'a> = FormatRefWithRule<'a, PatternMatchValue, FormatPatternMatchValue, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchSingleton
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchSingleton
type Format<'a> = FormatRefWithRule<'a, PatternMatchSingleton, FormatPatternMatchSingleton, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchSequence
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchSequence
type Format<'a> = FormatRefWithRule<'a, PatternMatchSequence, FormatPatternMatchSequence, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchMapping
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchMapping
type Format<'a> = FormatRefWithRule<'a, PatternMatchMapping, FormatPatternMatchMapping, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchClass
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchClass
type Format<'a> = FormatRefWithRule<'a, PatternMatchClass, FormatPatternMatchClass, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchStar
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchStar
type Format<'a> = FormatRefWithRule<'a, PatternMatchStar, FormatPatternMatchStar, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchAs
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchAs
type Format<'a> = FormatRefWithRule<'a, PatternMatchAs, FormatPatternMatchAs, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchOr
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternMatchOr
type Format<'a> = FormatRefWithRule<'a, PatternMatchOr, FormatPatternMatchOr, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamTypeVar
impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamTypeVar
type Format<'a> = FormatRefWithRule<'a, TypeParamTypeVar, FormatTypeParamTypeVar, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamTypeVarTuple
impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamTypeVarTuple
type Format<'a> = FormatRefWithRule<'a, TypeParamTypeVarTuple, FormatTypeParamTypeVarTuple, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamParamSpec
impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParamParamSpec
type Format<'a> = FormatRefWithRule<'a, TypeParamParamSpec, FormatTypeParamParamSpec, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternArguments
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternArguments
type Format<'a> = FormatRefWithRule<'a, PatternArguments, FormatPatternArguments, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternKeyword
impl<'ast> AsFormat<PyFormatContext<'ast>> for PatternKeyword
type Format<'a> = FormatRefWithRule<'a, PatternKeyword, FormatPatternKeyword, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Comprehension
impl<'ast> AsFormat<PyFormatContext<'ast>> for Comprehension
type Format<'a> = FormatRefWithRule<'a, Comprehension, FormatComprehension, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Arguments
impl<'ast> AsFormat<PyFormatContext<'ast>> for Arguments
type Format<'a> = FormatRefWithRule<'a, Arguments, FormatArguments, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Parameters
impl<'ast> AsFormat<PyFormatContext<'ast>> for Parameters
type Format<'a> = FormatRefWithRule<'a, Parameters, FormatParameters, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Parameter
impl<'ast> AsFormat<PyFormatContext<'ast>> for Parameter
type Format<'a> = FormatRefWithRule<'a, Parameter, FormatParameter, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ParameterWithDefault
impl<'ast> AsFormat<PyFormatContext<'ast>> for ParameterWithDefault
type Format<'a> = FormatRefWithRule<'a, ParameterWithDefault, FormatParameterWithDefault, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Keyword
impl<'ast> AsFormat<PyFormatContext<'ast>> for Keyword
type Format<'a> = FormatRefWithRule<'a, Keyword, FormatKeyword, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Alias
impl<'ast> AsFormat<PyFormatContext<'ast>> for Alias
type Format<'a> = FormatRefWithRule<'a, Alias, FormatAlias, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for WithItem
impl<'ast> AsFormat<PyFormatContext<'ast>> for WithItem
type Format<'a> = FormatRefWithRule<'a, WithItem, FormatWithItem, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for MatchCase
impl<'ast> AsFormat<PyFormatContext<'ast>> for MatchCase
type Format<'a> = FormatRefWithRule<'a, MatchCase, FormatMatchCase, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Decorator
impl<'ast> AsFormat<PyFormatContext<'ast>> for Decorator
type Format<'a> = FormatRefWithRule<'a, Decorator, FormatDecorator, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ElifElseClause
impl<'ast> AsFormat<PyFormatContext<'ast>> for ElifElseClause
type Format<'a> = FormatRefWithRule<'a, ElifElseClause, FormatElifElseClause, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParams
impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParams
type Format<'a> = FormatRefWithRule<'a, TypeParams, FormatTypeParams, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for FString
impl<'ast> AsFormat<PyFormatContext<'ast>> for FString
type Format<'a> = FormatRefWithRule<'a, FString, FormatFString, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for TString
impl<'ast> AsFormat<PyFormatContext<'ast>> for TString
type Format<'a> = FormatRefWithRule<'a, TString, FormatTString, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for StringLiteral
impl<'ast> AsFormat<PyFormatContext<'ast>> for StringLiteral
type Format<'a> = FormatRefWithRule<'a, StringLiteral, FormatStringLiteral, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for BytesLiteral
impl<'ast> AsFormat<PyFormatContext<'ast>> for BytesLiteral
type Format<'a> = FormatRefWithRule<'a, BytesLiteral, FormatBytesLiteral, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Mod
impl<'ast> AsFormat<PyFormatContext<'ast>> for Mod
type Format<'a> = FormatRefWithRule<'a, Mod, FormatMod, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Identifier
impl<'ast> AsFormat<PyFormatContext<'ast>> for Identifier
type Format<'a> = FormatRefWithRule<'a, Identifier, FormatIdentifier, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Pattern
impl<'ast> AsFormat<PyFormatContext<'ast>> for Pattern
type Format<'a> = FormatRefWithRule<'a, Pattern, FormatPattern, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for ExceptHandler
impl<'ast> AsFormat<PyFormatContext<'ast>> for ExceptHandler
type Format<'a> = FormatRefWithRule<'a, ExceptHandler, FormatExceptHandler, PyFormatContext<'ast>> where Self: 'a
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Suite
impl<'ast> AsFormat<PyFormatContext<'ast>> for Suite
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for Stmt
impl<'ast> AsFormat<PyFormatContext<'ast>> for Stmt
type Format<'a> = FormatRefWithRule<'a, Stmt, FormatStmt, PyFormatContext<'ast>>
Source§impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParam
impl<'ast> AsFormat<PyFormatContext<'ast>> for TypeParam
type Format<'a> = FormatRefWithRule<'a, TypeParam, FormatTypeParam, PyFormatContext<'ast>>
Source§impl Debug for PyFormatContext<'_>
impl Debug for PyFormatContext<'_>
Source§impl Format<PyFormatContext<'_>> for AnyStringPrefix
impl Format<PyFormatContext<'_>> for AnyStringPrefix
Source§fn fmt(&self, f: &mut Formatter<'_, PyFormatContext<'_>>) -> FormatResult<()>
fn fmt(&self, f: &mut Formatter<'_, PyFormatContext<'_>>) -> FormatResult<()>
Formats the object using the given formatter.
Source§impl FormatContext for PyFormatContext<'_>
impl FormatContext for PyFormatContext<'_>
type Options = PyFormatOptions
Source§fn source_code(&self) -> SourceCode<'_>
fn source_code(&self) -> SourceCode<'_>
Returns the source code from the document that gets formatted.
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for BoolOp
impl<'ast> IntoFormat<PyFormatContext<'ast>> for BoolOp
type Format = FormatOwnedWithRule<BoolOp, FormatBoolOp, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for CmpOp
impl<'ast> IntoFormat<PyFormatContext<'ast>> for CmpOp
type Format = FormatOwnedWithRule<CmpOp, FormatCmpOp, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Operator
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Operator
type Format = FormatOwnedWithRule<Operator, FormatOperator, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Expr
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Expr
type Format = FormatOwnedWithRule<Expr, FormatExpr, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ModModule
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ModModule
type Format = FormatOwnedWithRule<ModModule, FormatModModule, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ModExpression
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ModExpression
type Format = FormatOwnedWithRule<ModExpression, FormatModExpression, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtFunctionDef
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtFunctionDef
type Format = FormatOwnedWithRule<StmtFunctionDef, FormatStmtFunctionDef, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtClassDef
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtClassDef
type Format = FormatOwnedWithRule<StmtClassDef, FormatStmtClassDef, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtReturn
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtReturn
type Format = FormatOwnedWithRule<StmtReturn, FormatStmtReturn, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtDelete
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtDelete
type Format = FormatOwnedWithRule<StmtDelete, FormatStmtDelete, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtTypeAlias
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtTypeAlias
type Format = FormatOwnedWithRule<StmtTypeAlias, FormatStmtTypeAlias, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAssign
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAssign
type Format = FormatOwnedWithRule<StmtAssign, FormatStmtAssign, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAugAssign
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAugAssign
type Format = FormatOwnedWithRule<StmtAugAssign, FormatStmtAugAssign, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAnnAssign
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAnnAssign
type Format = FormatOwnedWithRule<StmtAnnAssign, FormatStmtAnnAssign, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtFor
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtFor
type Format = FormatOwnedWithRule<StmtFor, FormatStmtFor, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtWhile
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtWhile
type Format = FormatOwnedWithRule<StmtWhile, FormatStmtWhile, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtIf
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtIf
type Format = FormatOwnedWithRule<StmtIf, FormatStmtIf, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtWith
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtWith
type Format = FormatOwnedWithRule<StmtWith, FormatStmtWith, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtMatch
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtMatch
type Format = FormatOwnedWithRule<StmtMatch, FormatStmtMatch, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtRaise
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtRaise
type Format = FormatOwnedWithRule<StmtRaise, FormatStmtRaise, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtTry
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtTry
type Format = FormatOwnedWithRule<StmtTry, FormatStmtTry, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAssert
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtAssert
type Format = FormatOwnedWithRule<StmtAssert, FormatStmtAssert, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtImport
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtImport
type Format = FormatOwnedWithRule<StmtImport, FormatStmtImport, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtImportFrom
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtImportFrom
type Format = FormatOwnedWithRule<StmtImportFrom, FormatStmtImportFrom, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtGlobal
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtGlobal
type Format = FormatOwnedWithRule<StmtGlobal, FormatStmtGlobal, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtNonlocal
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtNonlocal
type Format = FormatOwnedWithRule<StmtNonlocal, FormatStmtNonlocal, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtExpr
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtExpr
type Format = FormatOwnedWithRule<StmtExpr, FormatStmtExpr, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtPass
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtPass
type Format = FormatOwnedWithRule<StmtPass, FormatStmtPass, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtBreak
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtBreak
type Format = FormatOwnedWithRule<StmtBreak, FormatStmtBreak, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtContinue
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtContinue
type Format = FormatOwnedWithRule<StmtContinue, FormatStmtContinue, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtIpyEscapeCommand
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StmtIpyEscapeCommand
type Format = FormatOwnedWithRule<StmtIpyEscapeCommand, FormatStmtIpyEscapeCommand, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBoolOp
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBoolOp
type Format = FormatOwnedWithRule<ExprBoolOp, FormatExprBoolOp, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNamed
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNamed
type Format = FormatOwnedWithRule<ExprNamed, FormatExprNamed, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBinOp
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBinOp
type Format = FormatOwnedWithRule<ExprBinOp, FormatExprBinOp, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprUnaryOp
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprUnaryOp
type Format = FormatOwnedWithRule<ExprUnaryOp, FormatExprUnaryOp, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprLambda
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprLambda
type Format = FormatOwnedWithRule<ExprLambda, FormatExprLambda, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprIf
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprIf
type Format = FormatOwnedWithRule<ExprIf, FormatExprIf, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprDict
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprDict
type Format = FormatOwnedWithRule<ExprDict, FormatExprDict, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSet
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSet
type Format = FormatOwnedWithRule<ExprSet, FormatExprSet, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprListComp
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprListComp
type Format = FormatOwnedWithRule<ExprListComp, FormatExprListComp, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSetComp
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSetComp
type Format = FormatOwnedWithRule<ExprSetComp, FormatExprSetComp, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprDictComp
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprDictComp
type Format = FormatOwnedWithRule<ExprDictComp, FormatExprDictComp, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprGenerator
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprGenerator
type Format = FormatOwnedWithRule<ExprGenerator, FormatExprGenerator, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprAwait
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprAwait
type Format = FormatOwnedWithRule<ExprAwait, FormatExprAwait, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprYield
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprYield
type Format = FormatOwnedWithRule<ExprYield, FormatExprYield, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprYieldFrom
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprYieldFrom
type Format = FormatOwnedWithRule<ExprYieldFrom, FormatExprYieldFrom, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprCompare
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprCompare
type Format = FormatOwnedWithRule<ExprCompare, FormatExprCompare, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprCall
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprCall
type Format = FormatOwnedWithRule<ExprCall, FormatExprCall, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprFString
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprFString
type Format = FormatOwnedWithRule<ExprFString, FormatExprFString, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprTString
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprTString
type Format = FormatOwnedWithRule<ExprTString, FormatExprTString, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprStringLiteral
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprStringLiteral
type Format = FormatOwnedWithRule<ExprStringLiteral, FormatExprStringLiteral, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBytesLiteral
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBytesLiteral
type Format = FormatOwnedWithRule<ExprBytesLiteral, FormatExprBytesLiteral, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNumberLiteral
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNumberLiteral
type Format = FormatOwnedWithRule<ExprNumberLiteral, FormatExprNumberLiteral, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBooleanLiteral
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprBooleanLiteral
type Format = FormatOwnedWithRule<ExprBooleanLiteral, FormatExprBooleanLiteral, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNoneLiteral
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprNoneLiteral
type Format = FormatOwnedWithRule<ExprNoneLiteral, FormatExprNoneLiteral, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprEllipsisLiteral
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprEllipsisLiteral
type Format = FormatOwnedWithRule<ExprEllipsisLiteral, FormatExprEllipsisLiteral, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprAttribute
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprAttribute
type Format = FormatOwnedWithRule<ExprAttribute, FormatExprAttribute, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSubscript
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSubscript
type Format = FormatOwnedWithRule<ExprSubscript, FormatExprSubscript, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprStarred
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprStarred
type Format = FormatOwnedWithRule<ExprStarred, FormatExprStarred, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprName
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprName
type Format = FormatOwnedWithRule<ExprName, FormatExprName, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprList
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprList
type Format = FormatOwnedWithRule<ExprList, FormatExprList, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprTuple
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprTuple
type Format = FormatOwnedWithRule<ExprTuple, FormatExprTuple, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSlice
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprSlice
type Format = FormatOwnedWithRule<ExprSlice, FormatExprSlice, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprIpyEscapeCommand
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExprIpyEscapeCommand
type Format = FormatOwnedWithRule<ExprIpyEscapeCommand, FormatExprIpyEscapeCommand, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExceptHandlerExceptHandler
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ExceptHandlerExceptHandler
type Format = FormatOwnedWithRule<ExceptHandlerExceptHandler, FormatExceptHandlerExceptHandler, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchValue
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchValue
type Format = FormatOwnedWithRule<PatternMatchValue, FormatPatternMatchValue, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchSingleton
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchSingleton
type Format = FormatOwnedWithRule<PatternMatchSingleton, FormatPatternMatchSingleton, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchSequence
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchSequence
type Format = FormatOwnedWithRule<PatternMatchSequence, FormatPatternMatchSequence, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchMapping
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchMapping
type Format = FormatOwnedWithRule<PatternMatchMapping, FormatPatternMatchMapping, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchClass
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchClass
type Format = FormatOwnedWithRule<PatternMatchClass, FormatPatternMatchClass, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchStar
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchStar
type Format = FormatOwnedWithRule<PatternMatchStar, FormatPatternMatchStar, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchAs
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchAs
type Format = FormatOwnedWithRule<PatternMatchAs, FormatPatternMatchAs, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchOr
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternMatchOr
type Format = FormatOwnedWithRule<PatternMatchOr, FormatPatternMatchOr, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamTypeVar
impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamTypeVar
type Format = FormatOwnedWithRule<TypeParamTypeVar, FormatTypeParamTypeVar, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamTypeVarTuple
impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamTypeVarTuple
type Format = FormatOwnedWithRule<TypeParamTypeVarTuple, FormatTypeParamTypeVarTuple, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamParamSpec
impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParamParamSpec
type Format = FormatOwnedWithRule<TypeParamParamSpec, FormatTypeParamParamSpec, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternArguments
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternArguments
type Format = FormatOwnedWithRule<PatternArguments, FormatPatternArguments, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternKeyword
impl<'ast> IntoFormat<PyFormatContext<'ast>> for PatternKeyword
type Format = FormatOwnedWithRule<PatternKeyword, FormatPatternKeyword, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Comprehension
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Comprehension
type Format = FormatOwnedWithRule<Comprehension, FormatComprehension, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Arguments
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Arguments
type Format = FormatOwnedWithRule<Arguments, FormatArguments, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Parameters
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Parameters
type Format = FormatOwnedWithRule<Parameters, FormatParameters, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Parameter
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Parameter
type Format = FormatOwnedWithRule<Parameter, FormatParameter, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ParameterWithDefault
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ParameterWithDefault
type Format = FormatOwnedWithRule<ParameterWithDefault, FormatParameterWithDefault, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Keyword
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Keyword
type Format = FormatOwnedWithRule<Keyword, FormatKeyword, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Alias
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Alias
type Format = FormatOwnedWithRule<Alias, FormatAlias, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for WithItem
impl<'ast> IntoFormat<PyFormatContext<'ast>> for WithItem
type Format = FormatOwnedWithRule<WithItem, FormatWithItem, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for MatchCase
impl<'ast> IntoFormat<PyFormatContext<'ast>> for MatchCase
type Format = FormatOwnedWithRule<MatchCase, FormatMatchCase, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Decorator
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Decorator
type Format = FormatOwnedWithRule<Decorator, FormatDecorator, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for ElifElseClause
impl<'ast> IntoFormat<PyFormatContext<'ast>> for ElifElseClause
type Format = FormatOwnedWithRule<ElifElseClause, FormatElifElseClause, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParams
impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParams
type Format = FormatOwnedWithRule<TypeParams, FormatTypeParams, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for FString
impl<'ast> IntoFormat<PyFormatContext<'ast>> for FString
type Format = FormatOwnedWithRule<FString, FormatFString, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for TString
impl<'ast> IntoFormat<PyFormatContext<'ast>> for TString
type Format = FormatOwnedWithRule<TString, FormatTString, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for StringLiteral
impl<'ast> IntoFormat<PyFormatContext<'ast>> for StringLiteral
type Format = FormatOwnedWithRule<StringLiteral, FormatStringLiteral, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for BytesLiteral
impl<'ast> IntoFormat<PyFormatContext<'ast>> for BytesLiteral
type Format = FormatOwnedWithRule<BytesLiteral, FormatBytesLiteral, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Mod
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Mod
type Format = FormatOwnedWithRule<Mod, FormatMod, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Identifier
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Identifier
type Format = FormatOwnedWithRule<Identifier, FormatIdentifier, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Pattern
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Pattern
type Format = FormatOwnedWithRule<Pattern, FormatPattern, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Suite
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Suite
type Format = FormatOwnedWithRule<ThinVec<Stmt>, FormatSuite, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for Stmt
impl<'ast> IntoFormat<PyFormatContext<'ast>> for Stmt
type Format = FormatOwnedWithRule<Stmt, FormatStmt, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
Source§impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParam
impl<'ast> IntoFormat<PyFormatContext<'ast>> for TypeParam
type Format = FormatOwnedWithRule<TypeParam, FormatTypeParam, PyFormatContext<'ast>>
fn into_format(self) -> Self::Format
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> 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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