Struct mz_sql::plan::transform_ast::FuncRewriter

source ·
struct FuncRewriter<'a> {
    scx: &'a StatementContext<'a>,
    status: Result<(), PlanError>,
    rewriting_table_factor: bool,
}

Fields§

§scx: &'a StatementContext<'a>§status: Result<(), PlanError>§rewriting_table_factor: bool

Implementations§

source§

impl<'a> FuncRewriter<'a>

source

fn new(scx: &'a StatementContext<'a>) -> FuncRewriter<'a>

source

fn resolve_known_valid_data_type( &self, name: &PartialItemName, ) -> ResolvedDataType

source

fn int32_data_type(&self) -> ResolvedDataType

source

fn plan_divide(lhs: Expr<Aug>, rhs: Expr<Aug>) -> Expr<Aug>

source

fn plan_agg( &mut self, name: ResolvedItemName, expr: Expr<Aug>, order_by: Vec<OrderByExpr<Aug>>, filter: Option<Box<Expr<Aug>>>, distinct: bool, over: Option<WindowSpec<Aug>>, ) -> Expr<Aug>

source

fn plan_avg( &mut self, expr: Expr<Aug>, filter: Option<Box<Expr<Aug>>>, distinct: bool, over: Option<WindowSpec<Aug>>, ) -> Expr<Aug>

source

fn plan_avg_internal_v1( &mut self, expr: Expr<Aug>, filter: Option<Box<Expr<Aug>>>, distinct: bool, over: Option<WindowSpec<Aug>>, ) -> Expr<Aug>

Same as plan_avg but internally uses mz_avg_promotion_internal_v1.

source

fn plan_variance( &mut self, expr: Expr<Aug>, filter: Option<Box<Expr<Aug>>>, distinct: bool, sample: bool, over: Option<WindowSpec<Aug>>, ) -> Expr<Aug>

source

fn plan_stddev( &mut self, expr: Expr<Aug>, filter: Option<Box<Expr<Aug>>>, distinct: bool, sample: bool, over: Option<WindowSpec<Aug>>, ) -> Expr<Aug>

source

fn plan_bool_and( &mut self, expr: Expr<Aug>, filter: Option<Box<Expr<Aug>>>, distinct: bool, over: Option<WindowSpec<Aug>>, ) -> Expr<Aug>

source

fn plan_bool_or( &mut self, expr: Expr<Aug>, filter: Option<Box<Expr<Aug>>>, distinct: bool, over: Option<WindowSpec<Aug>>, ) -> Expr<Aug>

source

fn rewrite_function( &mut self, func: &Function<Aug>, ) -> Option<(Ident, Expr<Aug>)>

source

fn rewrite_expr(&mut self, expr: &Expr<Aug>) -> Option<(Ident, Expr<Aug>)>

Trait Implementations§

source§

impl<'ast> VisitMut<'ast, Aug> for FuncRewriter<'_>

source§

fn visit_select_item_mut(&mut self, item: &'ast mut SelectItem<Aug>)

source§

fn visit_table_with_joins_mut(&mut self, item: &'ast mut TableWithJoins<Aug>)

source§

fn visit_expr_mut(&mut self, expr: &'ast mut Expr<Aug>)

source§

fn visit_abbreviated_grant_or_revoke_statement_mut( &mut self, node: &'ast mut AbbreviatedGrantOrRevokeStatement<T>, )

source§

fn visit_abbreviated_grant_statement_mut( &mut self, node: &'ast mut AbbreviatedGrantStatement<T>, )

source§

fn visit_abbreviated_revoke_statement_mut( &mut self, node: &'ast mut AbbreviatedRevokeStatement<T>, )

source§

fn visit_alter_cluster_action_mut( &mut self, node: &'ast mut AlterClusterAction<T>, )

source§

fn visit_alter_cluster_statement_mut( &mut self, node: &'ast mut AlterClusterStatement<T>, )

source§

fn visit_alter_connection_action_mut( &mut self, node: &'ast mut AlterConnectionAction<T>, )

source§

fn visit_alter_connection_option_mut( &mut self, node: &'ast mut AlterConnectionOption<T>, )

source§

fn visit_alter_connection_option_name_mut( &mut self, node: &'ast mut AlterConnectionOptionName, )

source§

fn visit_alter_connection_statement_mut( &mut self, node: &'ast mut AlterConnectionStatement<T>, )

source§

fn visit_alter_default_privileges_statement_mut( &mut self, node: &'ast mut AlterDefaultPrivilegesStatement<T>, )

source§

fn visit_alter_index_action_mut(&mut self, node: &'ast mut AlterIndexAction<T>)

source§

fn visit_alter_index_statement_mut( &mut self, node: &'ast mut AlterIndexStatement<T>, )

source§

fn visit_alter_network_policy_statement_mut( &mut self, node: &'ast mut AlterNetworkPolicyStatement<T>, )

source§

fn visit_alter_object_rename_statement_mut( &mut self, node: &'ast mut AlterObjectRenameStatement, )

source§

fn visit_alter_object_swap_statement_mut( &mut self, node: &'ast mut AlterObjectSwapStatement, )

source§

fn visit_alter_owner_statement_mut( &mut self, node: &'ast mut AlterOwnerStatement<T>, )

source§

fn visit_alter_retain_history_statement_mut( &mut self, node: &'ast mut AlterRetainHistoryStatement<T>, )

source§

fn visit_alter_role_option_mut(&mut self, node: &'ast mut AlterRoleOption)

source§

fn visit_alter_role_statement_mut( &mut self, node: &'ast mut AlterRoleStatement<T>, )

source§

fn visit_alter_secret_statement_mut( &mut self, node: &'ast mut AlterSecretStatement<T>, )

source§

fn visit_alter_set_cluster_statement_mut( &mut self, node: &'ast mut AlterSetClusterStatement<T>, )

source§

fn visit_alter_sink_action_mut(&mut self, node: &'ast mut AlterSinkAction<T>)

source§

fn visit_alter_sink_statement_mut( &mut self, node: &'ast mut AlterSinkStatement<T>, )

source§

fn visit_alter_source_action_mut( &mut self, node: &'ast mut AlterSourceAction<T>, )

source§

fn visit_alter_source_add_subsource_option_mut( &mut self, node: &'ast mut AlterSourceAddSubsourceOption<T>, )

source§

fn visit_alter_source_add_subsource_option_name_mut( &mut self, node: &'ast mut AlterSourceAddSubsourceOptionName, )

source§

fn visit_alter_source_statement_mut( &mut self, node: &'ast mut AlterSourceStatement<T>, )

source§

fn visit_alter_system_reset_all_statement_mut( &mut self, node: &'ast mut AlterSystemResetAllStatement, )

source§

fn visit_alter_system_reset_statement_mut( &mut self, node: &'ast mut AlterSystemResetStatement, )

source§

fn visit_alter_system_set_statement_mut( &mut self, node: &'ast mut AlterSystemSetStatement, )

source§

fn visit_alter_table_add_column_statement_mut( &mut self, node: &'ast mut AlterTableAddColumnStatement<T>, )

source§

fn visit_as_of_mut(&mut self, node: &'ast mut AsOf<T>)

source§

fn visit_assignment_mut(&mut self, node: &'ast mut Assignment<T>)

source§

fn visit_avro_doc_on_mut(&mut self, node: &'ast mut AvroDocOn<T>)

source§

fn visit_avro_schema_mut(&mut self, node: &'ast mut AvroSchema<T>)

source§

fn visit_avro_schema_option_mut(&mut self, node: &'ast mut AvroSchemaOption<T>)

source§

fn visit_avro_schema_option_name_mut( &mut self, node: &'ast mut AvroSchemaOptionName, )

source§

fn visit_catalog_name_mut(&mut self, node: &'ast mut CatalogName)

source§

fn visit_close_statement_mut(&mut self, node: &'ast mut CloseStatement)

source§

fn visit_cluster_alter_option_mut( &mut self, node: &'ast mut ClusterAlterOption<T>, )

source§

fn visit_cluster_alter_option_name_mut( &mut self, node: &'ast mut ClusterAlterOptionName, )

source§

fn visit_cluster_alter_option_value_mut( &mut self, node: &'ast mut ClusterAlterOptionValue<T>, )

source§

fn visit_cluster_alter_until_ready_option_mut( &mut self, node: &'ast mut ClusterAlterUntilReadyOption<T>, )

source§

fn visit_cluster_alter_until_ready_option_name_mut( &mut self, node: &'ast mut ClusterAlterUntilReadyOptionName, )

source§

fn visit_cluster_feature_mut(&mut self, node: &'ast mut ClusterFeature<T>)

source§

fn visit_cluster_feature_name_mut(&mut self, node: &'ast mut ClusterFeatureName)

source§

fn visit_cluster_option_mut(&mut self, node: &'ast mut ClusterOption<T>)

source§

fn visit_cluster_option_name_mut(&mut self, node: &'ast mut ClusterOptionName)

source§

fn visit_cluster_schedule_option_value_mut( &mut self, node: &'ast mut ClusterScheduleOptionValue, )

source§

fn visit_column_def_mut(&mut self, node: &'ast mut ColumnDef<T>)

source§

fn visit_column_name_mut(&mut self, node: &'ast mut ColumnName<T>)

source§

fn visit_column_option_mut(&mut self, node: &'ast mut ColumnOption<T>)

source§

fn visit_column_option_def_mut(&mut self, node: &'ast mut ColumnOptionDef<T>)

source§

fn visit_column_versioned_mut(&mut self, node: &'ast mut ColumnVersioned)

source§

fn visit_comment_object_type_mut( &mut self, node: &'ast mut CommentObjectType<T>, )

source§

fn visit_comment_statement_mut(&mut self, node: &'ast mut CommentStatement<T>)

source§

fn visit_commit_statement_mut(&mut self, node: &'ast mut CommitStatement)

source§

fn visit_connection_option_mut(&mut self, node: &'ast mut ConnectionOption<T>)

source§

fn visit_connection_option_name_mut( &mut self, node: &'ast mut ConnectionOptionName, )

source§

fn visit_continual_task_option_mut( &mut self, node: &'ast mut ContinualTaskOption<T>, )

source§

fn visit_continual_task_option_name_mut( &mut self, node: &'ast mut ContinualTaskOptionName, )

source§

fn visit_continual_task_stmt_mut( &mut self, node: &'ast mut ContinualTaskStmt<T>, )

source§

fn visit_copy_direction_mut(&mut self, node: &'ast mut CopyDirection)

source§

fn visit_copy_option_mut(&mut self, node: &'ast mut CopyOption<T>)

source§

fn visit_copy_option_name_mut(&mut self, node: &'ast mut CopyOptionName)

source§

fn visit_copy_relation_mut(&mut self, node: &'ast mut CopyRelation<T>)

source§

fn visit_copy_statement_mut(&mut self, node: &'ast mut CopyStatement<T>)

source§

fn visit_copy_target_mut(&mut self, node: &'ast mut CopyTarget<T>)

source§

fn visit_create_cluster_replica_statement_mut( &mut self, node: &'ast mut CreateClusterReplicaStatement<T>, )

source§

fn visit_create_cluster_statement_mut( &mut self, node: &'ast mut CreateClusterStatement<T>, )

source§

fn visit_create_connection_option_mut( &mut self, node: &'ast mut CreateConnectionOption<T>, )

source§

fn visit_create_connection_option_name_mut( &mut self, node: &'ast mut CreateConnectionOptionName, )

source§

fn visit_create_connection_statement_mut( &mut self, node: &'ast mut CreateConnectionStatement<T>, )

source§

fn visit_create_connection_type_mut( &mut self, node: &'ast mut CreateConnectionType, )

source§

fn visit_create_continual_task_statement_mut( &mut self, node: &'ast mut CreateContinualTaskStatement<T>, )

source§

fn visit_create_continual_task_sugar_mut( &mut self, node: &'ast mut CreateContinualTaskSugar<T>, )

source§

fn visit_create_database_statement_mut( &mut self, node: &'ast mut CreateDatabaseStatement, )

source§

fn visit_create_index_statement_mut( &mut self, node: &'ast mut CreateIndexStatement<T>, )

source§

fn visit_create_materialized_view_statement_mut( &mut self, node: &'ast mut CreateMaterializedViewStatement<T>, )

source§

fn visit_create_network_policy_statement_mut( &mut self, node: &'ast mut CreateNetworkPolicyStatement<T>, )

source§

fn visit_create_role_statement_mut( &mut self, node: &'ast mut CreateRoleStatement, )

source§

fn visit_create_schema_statement_mut( &mut self, node: &'ast mut CreateSchemaStatement, )

source§

fn visit_create_secret_statement_mut( &mut self, node: &'ast mut CreateSecretStatement<T>, )

source§

fn visit_create_sink_connection_mut( &mut self, node: &'ast mut CreateSinkConnection<T>, )

source§

fn visit_create_sink_option_mut(&mut self, node: &'ast mut CreateSinkOption<T>)

source§

fn visit_create_sink_option_name_mut( &mut self, node: &'ast mut CreateSinkOptionName, )

source§

fn visit_create_sink_statement_mut( &mut self, node: &'ast mut CreateSinkStatement<T>, )

source§

fn visit_create_source_connection_mut( &mut self, node: &'ast mut CreateSourceConnection<T>, )

source§

fn visit_create_source_option_mut( &mut self, node: &'ast mut CreateSourceOption<T>, )

source§

fn visit_create_source_option_name_mut( &mut self, node: &'ast mut CreateSourceOptionName, )

source§

fn visit_create_source_statement_mut( &mut self, node: &'ast mut CreateSourceStatement<T>, )

source§

fn visit_create_subsource_option_mut( &mut self, node: &'ast mut CreateSubsourceOption<T>, )

source§

fn visit_create_subsource_option_name_mut( &mut self, node: &'ast mut CreateSubsourceOptionName, )

source§

fn visit_create_subsource_statement_mut( &mut self, node: &'ast mut CreateSubsourceStatement<T>, )

source§

fn visit_create_table_from_source_statement_mut( &mut self, node: &'ast mut CreateTableFromSourceStatement<T>, )

source§

fn visit_create_table_statement_mut( &mut self, node: &'ast mut CreateTableStatement<T>, )

source§

fn visit_create_type_as_mut(&mut self, node: &'ast mut CreateTypeAs<T>)

source§

fn visit_create_type_list_option_mut( &mut self, node: &'ast mut CreateTypeListOption<T>, )

source§

fn visit_create_type_list_option_name_mut( &mut self, node: &'ast mut CreateTypeListOptionName, )

source§

fn visit_create_type_map_option_mut( &mut self, node: &'ast mut CreateTypeMapOption<T>, )

source§

fn visit_create_type_map_option_name_mut( &mut self, node: &'ast mut CreateTypeMapOptionName, )

source§

fn visit_create_type_statement_mut( &mut self, node: &'ast mut CreateTypeStatement<T>, )

source§

fn visit_create_view_statement_mut( &mut self, node: &'ast mut CreateViewStatement<T>, )

source§

fn visit_create_webhook_source_body_mut( &mut self, node: &'ast mut CreateWebhookSourceBody, )

source§

fn visit_create_webhook_source_check_mut( &mut self, node: &'ast mut CreateWebhookSourceCheck<T>, )

source§

fn visit_create_webhook_source_check_options_mut( &mut self, node: &'ast mut CreateWebhookSourceCheckOptions<T>, )

source§

fn visit_create_webhook_source_filter_header_mut( &mut self, node: &'ast mut CreateWebhookSourceFilterHeader, )

source§

fn visit_create_webhook_source_header_mut( &mut self, node: &'ast mut CreateWebhookSourceHeader, )

source§

fn visit_create_webhook_source_include_headers_mut( &mut self, node: &'ast mut CreateWebhookSourceIncludeHeaders, )

source§

fn visit_create_webhook_source_map_header_mut( &mut self, node: &'ast mut CreateWebhookSourceMapHeader, )

source§

fn visit_create_webhook_source_secret_mut( &mut self, node: &'ast mut CreateWebhookSourceSecret<T>, )

source§

fn visit_create_webhook_source_statement_mut( &mut self, node: &'ast mut CreateWebhookSourceStatement<T>, )

source§

fn visit_csr_config_option_mut(&mut self, node: &'ast mut CsrConfigOption<T>)

source§

fn visit_csr_config_option_name_mut( &mut self, node: &'ast mut CsrConfigOptionName<T>, )

source§

fn visit_csr_connection_mut(&mut self, node: &'ast mut CsrConnection<T>)

source§

fn visit_csr_connection_avro_mut( &mut self, node: &'ast mut CsrConnectionAvro<T>, )

source§

fn visit_csr_connection_protobuf_mut( &mut self, node: &'ast mut CsrConnectionProtobuf<T>, )

source§

fn visit_csr_seed_avro_mut(&mut self, node: &'ast mut CsrSeedAvro)

source§

fn visit_csr_seed_protobuf_mut(&mut self, node: &'ast mut CsrSeedProtobuf)

source§

fn visit_csr_seed_protobuf_schema_mut( &mut self, node: &'ast mut CsrSeedProtobufSchema, )

source§

fn visit_csv_columns_mut(&mut self, node: &'ast mut CsvColumns)

source§

fn visit_cte_mut(&mut self, node: &'ast mut Cte<T>)

source§

fn visit_cte_block_mut(&mut self, node: &'ast mut CteBlock<T>)

source§

fn visit_cte_mut_rec_mut(&mut self, node: &'ast mut CteMutRec<T>)

source§

fn visit_cte_mut_rec_column_def_mut( &mut self, node: &'ast mut CteMutRecColumnDef<T>, )

source§

fn visit_date_time_field_mut(&mut self, node: &'ast mut DateTimeField)

source§

fn visit_deallocate_statement_mut( &mut self, node: &'ast mut DeallocateStatement, )

source§

fn visit_declare_statement_mut(&mut self, node: &'ast mut DeclareStatement<T>)

source§

fn visit_deferred_item_name_mut(&mut self, node: &'ast mut DeferredItemName<T>)

source§

fn visit_delete_statement_mut(&mut self, node: &'ast mut DeleteStatement<T>)

source§

fn visit_discard_statement_mut(&mut self, node: &'ast mut DiscardStatement)

source§

fn visit_discard_target_mut(&mut self, node: &'ast mut DiscardTarget)

source§

fn visit_distinct_mut(&mut self, node: &'ast mut Distinct<T>)

source§

fn visit_doc_on_identifier_mut(&mut self, node: &'ast mut DocOnIdentifier<T>)

source§

fn visit_doc_on_schema_mut(&mut self, node: &'ast mut DocOnSchema)

source§

fn visit_drop_objects_statement_mut( &mut self, node: &'ast mut DropObjectsStatement, )

source§

fn visit_drop_owned_statement_mut( &mut self, node: &'ast mut DropOwnedStatement<T>, )

source§

fn visit_execute_statement_mut(&mut self, node: &'ast mut ExecuteStatement<T>)

source§

fn visit_explain_format_mut(&mut self, node: &'ast mut ExplainFormat)

source§

fn visit_explain_plan_option_mut( &mut self, node: &'ast mut ExplainPlanOption<T>, )

source§

fn visit_explain_plan_option_name_mut( &mut self, node: &'ast mut ExplainPlanOptionName, )

source§

fn visit_explain_plan_statement_mut( &mut self, node: &'ast mut ExplainPlanStatement<T>, )

source§

fn visit_explain_pushdown_statement_mut( &mut self, node: &'ast mut ExplainPushdownStatement<T>, )

source§

fn visit_explain_sink_schema_for_mut( &mut self, node: &'ast mut ExplainSinkSchemaFor, )

source§

fn visit_explain_sink_schema_statement_mut( &mut self, node: &'ast mut ExplainSinkSchemaStatement<T>, )

source§

fn visit_explain_stage_mut(&mut self, node: &'ast mut ExplainStage)

source§

fn visit_explain_timestamp_statement_mut( &mut self, node: &'ast mut ExplainTimestampStatement<T>, )

source§

fn visit_explainee_mut(&mut self, node: &'ast mut Explainee<T>)

source§

fn visit_external_reference_export_mut( &mut self, node: &'ast mut ExternalReferenceExport, )

source§

fn visit_external_references_mut(&mut self, node: &'ast mut ExternalReferences)

source§

fn visit_fetch_direction_mut(&mut self, node: &'ast mut FetchDirection)

source§

fn visit_fetch_option_mut(&mut self, node: &'ast mut FetchOption<T>)

source§

fn visit_fetch_option_name_mut(&mut self, node: &'ast mut FetchOptionName)

source§

fn visit_fetch_statement_mut(&mut self, node: &'ast mut FetchStatement<T>)

source§

fn visit_format_mut(&mut self, node: &'ast mut Format<T>)

source§

fn visit_format_specifier_mut(&mut self, node: &'ast mut FormatSpecifier<T>)

source§

fn visit_function_mut(&mut self, node: &'ast mut Function<T>)

source§

fn visit_function_args_mut(&mut self, node: &'ast mut FunctionArgs<T>)

source§

fn visit_grant_privileges_statement_mut( &mut self, node: &'ast mut GrantPrivilegesStatement<T>, )

source§

fn visit_grant_role_statement_mut( &mut self, node: &'ast mut GrantRoleStatement<T>, )

source§

fn visit_grant_target_all_specification_mut( &mut self, node: &'ast mut GrantTargetAllSpecification<T>, )

source§

fn visit_grant_target_specification_mut( &mut self, node: &'ast mut GrantTargetSpecification<T>, )

source§

fn visit_grant_target_specification_inner_mut( &mut self, node: &'ast mut GrantTargetSpecificationInner<T>, )

source§

fn visit_homogenizing_function_mut( &mut self, node: &'ast mut HomogenizingFunction, )

source§

fn visit_ident_mut(&mut self, node: &'ast mut Ident)

source§

fn visit_ident_error_mut(&mut self, node: &'ast mut IdentError)

source§

fn visit_if_exists_behavior_mut(&mut self, node: &'ast mut IfExistsBehavior)

source§

fn visit_index_option_mut(&mut self, node: &'ast mut IndexOption<T>)

source§

fn visit_index_option_name_mut(&mut self, node: &'ast mut IndexOptionName)

source§

fn visit_insert_source_mut(&mut self, node: &'ast mut InsertSource<T>)

source§

fn visit_insert_statement_mut(&mut self, node: &'ast mut InsertStatement<T>)

source§

fn visit_inspect_shard_statement_mut( &mut self, node: &'ast mut InspectShardStatement, )

source§

fn visit_interval_value_mut(&mut self, node: &'ast mut IntervalValue)

source§

fn visit_is_expr_construct_mut(&mut self, node: &'ast mut IsExprConstruct<T>)

source§

fn visit_join_mut(&mut self, node: &'ast mut Join<T>)

source§

fn visit_join_constraint_mut(&mut self, node: &'ast mut JoinConstraint<T>)

source§

fn visit_join_operator_mut(&mut self, node: &'ast mut JoinOperator<T>)

source§

fn visit_kafka_broker_mut(&mut self, node: &'ast mut KafkaBroker<T>)

source§

fn visit_kafka_broker_tunnel_mut( &mut self, node: &'ast mut KafkaBrokerTunnel<T>, )

source§

fn visit_kafka_sink_config_option_mut( &mut self, node: &'ast mut KafkaSinkConfigOption<T>, )

source§

fn visit_kafka_sink_config_option_name_mut( &mut self, node: &'ast mut KafkaSinkConfigOptionName, )

source§

fn visit_kafka_sink_key_mut(&mut self, node: &'ast mut KafkaSinkKey)

source§

fn visit_kafka_source_config_option_mut( &mut self, node: &'ast mut KafkaSourceConfigOption<T>, )

source§

fn visit_kafka_source_config_option_name_mut( &mut self, node: &'ast mut KafkaSourceConfigOptionName, )

source§

fn visit_key_constraint_mut(&mut self, node: &'ast mut KeyConstraint)

source§

fn visit_limit_mut(&mut self, node: &'ast mut Limit<T>)

source§

fn visit_load_generator_mut(&mut self, node: &'ast mut LoadGenerator)

source§

fn visit_load_generator_option_mut( &mut self, node: &'ast mut LoadGeneratorOption<T>, )

source§

fn visit_load_generator_option_name_mut( &mut self, node: &'ast mut LoadGeneratorOptionName, )

source§

fn visit_map_entry_mut(&mut self, node: &'ast mut MapEntry<T>)

source§

fn visit_materialized_view_option_mut( &mut self, node: &'ast mut MaterializedViewOption<T>, )

source§

fn visit_materialized_view_option_name_mut( &mut self, node: &'ast mut MaterializedViewOptionName, )

source§

fn visit_mut_rec_block_mut(&mut self, node: &'ast mut MutRecBlock<T>)

source§

fn visit_mut_rec_block_option_mut( &mut self, node: &'ast mut MutRecBlockOption<T>, )

source§

fn visit_mut_rec_block_option_name_mut( &mut self, node: &'ast mut MutRecBlockOptionName, )

source§

fn visit_my_sql_config_option_mut( &mut self, node: &'ast mut MySqlConfigOption<T>, )

source§

fn visit_my_sql_config_option_name_mut( &mut self, node: &'ast mut MySqlConfigOptionName, )

source§

fn visit_named_plan_mut(&mut self, node: &'ast mut NamedPlan)

source§

fn visit_network_policy_option_mut( &mut self, node: &'ast mut NetworkPolicyOption<T>, )

source§

fn visit_network_policy_option_name_mut( &mut self, node: &'ast mut NetworkPolicyOptionName, )

source§

fn visit_network_policy_rule_definition_mut( &mut self, node: &'ast mut NetworkPolicyRuleDefinition<T>, )

source§

fn visit_network_policy_rule_option_mut( &mut self, node: &'ast mut NetworkPolicyRuleOption<T>, )

source§

fn visit_network_policy_rule_option_name_mut( &mut self, node: &'ast mut NetworkPolicyRuleOptionName, )

source§

fn visit_notice_severity_mut(&mut self, node: &'ast mut NoticeSeverity)

source§

fn visit_object_type_mut(&mut self, node: &'ast mut ObjectType)

source§

fn visit_op_mut(&mut self, node: &'ast mut Op)

source§

fn visit_order_by_expr_mut(&mut self, node: &'ast mut OrderByExpr<T>)

source§

fn visit_pg_config_option_mut(&mut self, node: &'ast mut PgConfigOption<T>)

source§

fn visit_pg_config_option_name_mut( &mut self, node: &'ast mut PgConfigOptionName, )

source§

fn visit_prepare_statement_mut(&mut self, node: &'ast mut PrepareStatement<T>)

source§

fn visit_privilege_mut(&mut self, node: &'ast mut Privilege)

source§

fn visit_privilege_specification_mut( &mut self, node: &'ast mut PrivilegeSpecification, )

source§

fn visit_protobuf_schema_mut(&mut self, node: &'ast mut ProtobufSchema<T>)

source§

fn visit_qualified_replica_mut(&mut self, node: &'ast mut QualifiedReplica)

source§

fn visit_query_mut(&mut self, node: &'ast mut Query<T>)

source§

fn visit_raise_statement_mut(&mut self, node: &'ast mut RaiseStatement)

source§

fn visit_reader_schema_selection_strategy_mut( &mut self, node: &'ast mut ReaderSchemaSelectionStrategy, )

source§

fn visit_reassign_owned_statement_mut( &mut self, node: &'ast mut ReassignOwnedStatement<T>, )

source§

fn visit_refresh_at_option_value_mut( &mut self, node: &'ast mut RefreshAtOptionValue<T>, )

source§

fn visit_refresh_every_option_value_mut( &mut self, node: &'ast mut RefreshEveryOptionValue<T>, )

source§

fn visit_refresh_option_value_mut( &mut self, node: &'ast mut RefreshOptionValue<T>, )

source§

fn visit_replica_definition_mut(&mut self, node: &'ast mut ReplicaDefinition<T>)

source§

fn visit_replica_option_mut(&mut self, node: &'ast mut ReplicaOption<T>)

source§

fn visit_replica_option_name_mut(&mut self, node: &'ast mut ReplicaOptionName)

source§

fn visit_reset_variable_statement_mut( &mut self, node: &'ast mut ResetVariableStatement, )

source§

fn visit_revoke_privileges_statement_mut( &mut self, node: &'ast mut RevokePrivilegesStatement<T>, )

source§

fn visit_revoke_role_statement_mut( &mut self, node: &'ast mut RevokeRoleStatement<T>, )

source§

fn visit_role_attribute_mut(&mut self, node: &'ast mut RoleAttribute)

source§

fn visit_rollback_statement_mut(&mut self, node: &'ast mut RollbackStatement)

source§

fn visit_schema_mut(&mut self, node: &'ast mut Schema)

source§

fn visit_select_mut(&mut self, node: &'ast mut Select<T>)

source§

fn visit_select_option_mut(&mut self, node: &'ast mut SelectOption<T>)

source§

fn visit_select_option_name_mut(&mut self, node: &'ast mut SelectOptionName)

source§

fn visit_select_statement_mut(&mut self, node: &'ast mut SelectStatement<T>)

source§

fn visit_set_expr_mut(&mut self, node: &'ast mut SetExpr<T>)

source§

fn visit_set_operator_mut(&mut self, node: &'ast mut SetOperator)

source§

fn visit_set_role_var_mut(&mut self, node: &'ast mut SetRoleVar)

source§

fn visit_set_transaction_statement_mut( &mut self, node: &'ast mut SetTransactionStatement, )

source§

fn visit_set_variable_statement_mut( &mut self, node: &'ast mut SetVariableStatement, )

source§

fn visit_set_variable_to_mut(&mut self, node: &'ast mut SetVariableTo)

source§

fn visit_set_variable_value_mut(&mut self, node: &'ast mut SetVariableValue)

source§

fn visit_show_columns_statement_mut( &mut self, node: &'ast mut ShowColumnsStatement<T>, )

source§

fn visit_show_create_cluster_statement_mut( &mut self, node: &'ast mut ShowCreateClusterStatement<T>, )

source§

fn visit_show_create_connection_statement_mut( &mut self, node: &'ast mut ShowCreateConnectionStatement<T>, )

source§

fn visit_show_create_index_statement_mut( &mut self, node: &'ast mut ShowCreateIndexStatement<T>, )

source§

fn visit_show_create_materialized_view_statement_mut( &mut self, node: &'ast mut ShowCreateMaterializedViewStatement<T>, )

source§

fn visit_show_create_sink_statement_mut( &mut self, node: &'ast mut ShowCreateSinkStatement<T>, )

source§

fn visit_show_create_source_statement_mut( &mut self, node: &'ast mut ShowCreateSourceStatement<T>, )

source§

fn visit_show_create_table_statement_mut( &mut self, node: &'ast mut ShowCreateTableStatement<T>, )

source§

fn visit_show_create_view_statement_mut( &mut self, node: &'ast mut ShowCreateViewStatement<T>, )

source§

fn visit_show_object_type_mut(&mut self, node: &'ast mut ShowObjectType<T>)

source§

fn visit_show_objects_statement_mut( &mut self, node: &'ast mut ShowObjectsStatement<T>, )

source§

fn visit_show_statement_mut(&mut self, node: &'ast mut ShowStatement<T>)

source§

fn visit_show_statement_filter_mut( &mut self, node: &'ast mut ShowStatementFilter<T>, )

source§

fn visit_show_variable_statement_mut( &mut self, node: &'ast mut ShowVariableStatement, )

source§

fn visit_sink_envelope_mut(&mut self, node: &'ast mut SinkEnvelope)

source§

fn visit_source_envelope_mut(&mut self, node: &'ast mut SourceEnvelope)

source§

fn visit_source_error_policy_mut(&mut self, node: &'ast mut SourceErrorPolicy)

source§

fn visit_source_include_metadata_mut( &mut self, node: &'ast mut SourceIncludeMetadata, )

source§

fn visit_start_transaction_statement_mut( &mut self, node: &'ast mut StartTransactionStatement, )

source§

fn visit_statement_mut(&mut self, node: &'ast mut Statement<T>)

source§

fn visit_subscribe_option_mut(&mut self, node: &'ast mut SubscribeOption<T>)

source§

fn visit_subscribe_option_name_mut( &mut self, node: &'ast mut SubscribeOptionName, )

source§

fn visit_subscribe_output_mut(&mut self, node: &'ast mut SubscribeOutput<T>)

source§

fn visit_subscribe_relation_mut(&mut self, node: &'ast mut SubscribeRelation<T>)

source§

fn visit_subscribe_statement_mut( &mut self, node: &'ast mut SubscribeStatement<T>, )

source§

fn visit_subscript_position_mut(&mut self, node: &'ast mut SubscriptPosition<T>)

source§

fn visit_system_object_type_mut(&mut self, node: &'ast mut SystemObjectType)

source§

fn visit_cluster_name_mut( &mut self, node: &'ast mut <T as AstInfo>::ClusterName, )

source§

fn visit_column_reference_mut( &mut self, node: &'ast mut <T as AstInfo>::ColumnReference, )

source§

fn visit_cte_id_mut(&mut self, node: &'ast mut <T as AstInfo>::CteId)

source§

fn visit_data_type_mut(&mut self, node: &'ast mut <T as AstInfo>::DataType)

source§

fn visit_database_name_mut( &mut self, node: &'ast mut <T as AstInfo>::DatabaseName, )

source§

fn visit_item_name_mut(&mut self, node: &'ast mut <T as AstInfo>::ItemName)

source§

fn visit_nested_statement_mut( &mut self, node: &'ast mut <T as AstInfo>::NestedStatement, )

source§

fn visit_network_policy_name_mut( &mut self, node: &'ast mut <T as AstInfo>::NetworkPolicyName, )

source§

fn visit_object_name_mut(&mut self, node: &'ast mut <T as AstInfo>::ObjectName)

source§

fn visit_role_name_mut(&mut self, node: &'ast mut <T as AstInfo>::RoleName)

source§

fn visit_schema_name_mut(&mut self, node: &'ast mut <T as AstInfo>::SchemaName)

source§

fn visit_table_alias_mut(&mut self, node: &'ast mut TableAlias)

source§

fn visit_table_constraint_mut(&mut self, node: &'ast mut TableConstraint<T>)

source§

fn visit_table_factor_mut(&mut self, node: &'ast mut TableFactor<T>)

source§

fn visit_table_from_source_columns_mut( &mut self, node: &'ast mut TableFromSourceColumns<T>, )

source§

fn visit_table_from_source_option_mut( &mut self, node: &'ast mut TableFromSourceOption<T>, )

source§

fn visit_table_from_source_option_name_mut( &mut self, node: &'ast mut TableFromSourceOptionName, )

source§

fn visit_table_option_mut(&mut self, node: &'ast mut TableOption<T>)

source§

fn visit_table_option_name_mut(&mut self, node: &'ast mut TableOptionName)

source§

fn visit_target_role_specification_mut( &mut self, node: &'ast mut TargetRoleSpecification<T>, )

source§

fn visit_transaction_access_mode_mut( &mut self, node: &'ast mut TransactionAccessMode, )

source§

fn visit_transaction_isolation_level_mut( &mut self, node: &'ast mut TransactionIsolationLevel, )

source§

fn visit_transaction_mode_mut(&mut self, node: &'ast mut TransactionMode)

source§

fn visit_unresolved_database_name_mut( &mut self, node: &'ast mut UnresolvedDatabaseName, )

source§

fn visit_unresolved_item_name_mut(&mut self, node: &'ast mut UnresolvedItemName)

source§

fn visit_unresolved_object_name_mut( &mut self, node: &'ast mut UnresolvedObjectName, )

source§

fn visit_unresolved_schema_name_mut( &mut self, node: &'ast mut UnresolvedSchemaName, )

source§

fn visit_update_statement_mut(&mut self, node: &'ast mut UpdateStatement<T>)

source§

fn visit_validate_connection_statement_mut( &mut self, node: &'ast mut ValidateConnectionStatement<T>, )

source§

fn visit_value_mut(&mut self, node: &'ast mut Value)

source§

fn visit_value_error_mut(&mut self, node: &'ast mut ValueError)

source§

fn visit_values_mut(&mut self, node: &'ast mut Values<T>)

source§

fn visit_version_mut(&mut self, node: &'ast mut Version)

source§

fn visit_view_definition_mut(&mut self, node: &'ast mut ViewDefinition<T>)

source§

fn visit_window_frame_mut(&mut self, node: &'ast mut WindowFrame)

source§

fn visit_window_frame_bound_mut(&mut self, node: &'ast mut WindowFrameBound)

source§

fn visit_window_frame_units_mut(&mut self, node: &'ast mut WindowFrameUnits)

source§

fn visit_window_spec_mut(&mut self, node: &'ast mut WindowSpec<T>)

source§

fn visit_with_option_value_mut(&mut self, node: &'ast mut WithOptionValue<T>)

Auto Trait Implementations§

§

impl<'a> Freeze for FuncRewriter<'a>

§

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

§

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

§

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

§

impl<'a> Unpin for FuncRewriter<'a>

§

impl<'a> !UnwindSafe for FuncRewriter<'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> AsAny for T
where T: Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

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, U> CastInto<U> for T
where U: CastFrom<T>,

source§

fn cast_into(self) -> U

Performs the cast.
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FutureExt for T

source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T, U> OverrideFrom<Option<&T>> for U
where U: OverrideFrom<T>,

source§

fn override_from(self, layer: &Option<&T>) -> U

Override the configuration represented by Self with values from the given layer.
source§

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

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<P, R> ProtoType<R> for P
where R: RustType<P>,

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<'a, S, T> Semigroup<&'a S> for T
where T: Semigroup<S>,

source§

fn plus_equals(&mut self, rhs: &&'a S)

The method of std::ops::AddAssign, for types that do not implement AddAssign.
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

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

§

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

§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

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