pub trait AstDisplay {
// Required method
fn fmt<W>(&self, f: &mut AstFormatter<W>)
where W: Write;
// Provided methods
fn to_ast_string(&self) -> String { ... }
fn to_ast_string_stable(&self) -> String { ... }
fn to_ast_string_redacted(&self) -> String { ... }
}
Required Methods§
fn fmt<W>(&self, f: &mut AstFormatter<W>)where
W: Write,
Provided Methods§
fn to_ast_string(&self) -> String
fn to_ast_string_stable(&self) -> String
fn to_ast_string_redacted(&self) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl AstDisplay for i64
impl AstDisplay for i64
fn fmt<W: Write>(&self, f: &mut AstFormatter<W>)
Source§impl AstDisplay for u32
impl AstDisplay for u32
fn fmt<W: Write>(&self, f: &mut AstFormatter<W>)
Source§impl AstDisplay for u64
impl AstDisplay for u64
fn fmt<W: Write>(&self, f: &mut AstFormatter<W>)
Source§impl<T: AstDisplay> AstDisplay for &Box<T>
impl<T: AstDisplay> AstDisplay for &Box<T>
fn fmt<W: Write>(&self, f: &mut AstFormatter<W>)
Source§impl<T: AstDisplay> AstDisplay for Box<T>
impl<T: AstDisplay> AstDisplay for Box<T>
fn fmt<W: Write>(&self, f: &mut AstFormatter<W>)
Implementors§
impl AstDisplay for &UnresolvedItemName
impl AstDisplay for AvroSchemaOptionName
impl AstDisplay for ColumnVersioned
impl AstDisplay for ConnectionOptionName
impl AstDisplay for ContinualTaskOptionName
impl AstDisplay for CreateConnectionOptionName
impl AstDisplay for CreateConnectionType
impl AstDisplay for CreateSourceOptionName
impl AstDisplay for CsvColumns
impl AstDisplay for KafkaSinkConfigOptionName
impl AstDisplay for KafkaSourceConfigOptionName
impl AstDisplay for KeyConstraint
impl AstDisplay for LoadGenerator
impl AstDisplay for LoadGeneratorOptionName
impl AstDisplay for MaterializedViewOptionName
impl AstDisplay for MySqlConfigOptionName
impl AstDisplay for PgConfigOptionName
impl AstDisplay for SinkEnvelope
impl AstDisplay for SourceEnvelope
impl AstDisplay for SourceErrorPolicy
impl AstDisplay for SourceIncludeMetadata
impl AstDisplay for HomogenizingFunction
impl AstDisplay for WindowFrameBound
impl AstDisplay for WindowFrameUnits
impl AstDisplay for UnresolvedObjectName
impl AstDisplay for MutRecBlockOptionName
impl AstDisplay for SelectOptionName
impl AstDisplay for SetOperator
impl AstDisplay for AlterConnectionOptionName
impl AstDisplay for AlterRoleOption
impl AstDisplay for AlterSourceAddSubsourceOptionName
impl AstDisplay for ClusterAlterOptionName
impl AstDisplay for ClusterAlterUntilReadyOptionName
impl AstDisplay for ClusterFeatureName
impl AstDisplay for ClusterOptionName
impl AstDisplay for ClusterScheduleOptionValue
impl AstDisplay for CopyDirection
impl AstDisplay for CopyOptionName
impl AstDisplay for CreateSinkOptionName
impl AstDisplay for CreateSubsourceOptionName
impl AstDisplay for CreateTypeListOptionName
impl AstDisplay for CreateTypeMapOptionName
impl AstDisplay for DiscardTarget
impl AstDisplay for ExplainFormat
impl AstDisplay for ExplainPlanOptionName
impl AstDisplay for ExplainStage
impl AstDisplay for ExternalReferences
impl AstDisplay for FetchDirection
impl AstDisplay for FetchOptionName
impl AstDisplay for IndexOptionName
impl AstDisplay for KafkaBrokerAwsPrivatelinkOptionName
impl AstDisplay for NoticeSeverity
impl AstDisplay for ObjectType
impl AstDisplay for Privilege
impl AstDisplay for PrivilegeSpecification
impl AstDisplay for ReplicaOptionName
impl AstDisplay for RoleAttribute
impl AstDisplay for SetRoleVar
impl AstDisplay for SetVariableTo
impl AstDisplay for SetVariableValue
impl AstDisplay for SubscribeOptionName
impl AstDisplay for SystemObjectType
impl AstDisplay for TableFromSourceOptionName
impl AstDisplay for TableOptionName
impl AstDisplay for TransactionAccessMode
impl AstDisplay for TransactionIsolationLevel
impl AstDisplay for TransactionMode
impl AstDisplay for Value
impl AstDisplay for RawClusterName
impl AstDisplay for RawDataType
impl AstDisplay for RawItemName
impl AstDisplay for CsrSeedAvro
impl AstDisplay for CsrSeedProtobuf
impl AstDisplay for CsrSeedProtobufSchema
impl AstDisplay for KafkaSinkKey
impl AstDisplay for Schema
impl AstDisplay for Op
impl AstDisplay for Ident
More-or-less a direct translation of the Postgres function for doing the same thing:
https://github.com/postgres/postgres/blob/master/src/backend/utils/adt/ruleutils.c#L10730-L10812
Quotation is forced when printing in Stable mode.