Struct sql::plan::transform_ast::Desugarer [−][src]
struct Desugarer {
status: Result<(), PlanError>,
recursion_guard: RecursionGuard,
}
Expand description
Removes syntax sugar to simplify the planner.
For example, <expr> NOT IN (<subquery>)
is rewritten to expr <> ALL (<subquery>)
.
Fields
status: Result<(), PlanError>
recursion_guard: RecursionGuard
Implementations
Trait Implementations
Extracts a reference to the recursion guard embedded within the type.
fn checked_recur<F, T, E>(&self, f: F) -> Result<T, E> where
F: FnOnce(&Self) -> Result<T, E>,
E: From<RecursionLimitError>,
fn checked_recur<F, T, E>(&self, f: F) -> Result<T, E> where
F: FnOnce(&Self) -> Result<T, E>,
E: From<RecursionLimitError>,
Checks whether it is safe to recur and calls f
if so. Read more
fn checked_recur_mut<F, T, E>(&mut self, f: F) -> Result<T, E> where
F: FnOnce(&mut Self) -> Result<T, E>,
E: From<RecursionLimitError>,
fn checked_recur_mut<F, T, E>(&mut self, f: F) -> Result<T, E> where
F: FnOnce(&mut Self) -> Result<T, E>,
E: From<RecursionLimitError>,
Like CheckedRecursion::checked_recur
, but operates on a mutable
reference to Self
. Read more
fn visit_alter_object_rename_statement_mut(
&mut self,
node: &'ast mut AlterObjectRenameStatement
)
fn visit_show_create_source_statement_mut(
&mut self,
node: &'ast mut ShowCreateSourceStatement
)
fn visit_source_include_metadata_type_mut(
&mut self,
node: &'ast mut SourceIncludeMetadataType
)
fn visit_start_transaction_statement_mut(
&mut self,
node: &'ast mut StartTransactionStatement
)
fn visit_transaction_isolation_level_mut(
&mut self,
node: &'ast mut TransactionIsolationLevel
)
Auto Trait Implementations
impl !RefUnwindSafe for Desugarer
impl UnwindSafe for Desugarer
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more