pub struct MutableExpressionPlan { /* private fields */ }Implementations§
Source§impl MutableExpressionPlan
impl MutableExpressionPlan
Sourcepub fn prune_subqueries(
self,
control: &ProductionControl<'_>,
) -> Result<Self, SQLError>
pub fn prune_subqueries( self, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
Compact scalar-query occurrences through the same namespace remapper used by immutable expressions, retiring removed child payloads before their leases.
pub fn copy_from( scalar: &ScalarExpr, queries: &[QueryPlan], control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
pub fn from_parts( scalar: OwnedScalarExpr, arena: ScalarQueryArena, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
pub fn into_parts( self, control: &ProductionControl<'_>, ) -> Result<(OwnedScalarExpr, ScalarQueryArena), SQLError>
pub fn scalar(&self) -> &ScalarExpr
pub fn queries(&self) -> &[QueryPlan]
pub fn map_scalar( self, control: &ProductionControl<'_>, map: impl FnOnce(OwnedScalarExpr, &mut ScalarQueryArena) -> Result<OwnedScalarExpr, SQLError>, ) -> Result<Self, SQLError>
pub fn map_query( self, index: usize, control: &ProductionControl<'_>, map: impl FnOnce(MutableQueryPlan) -> Result<MutableQueryPlan, SQLError>, ) -> Result<Self, SQLError>
pub fn finish( self, control: &ProductionControl<'_>, ) -> Result<Produced<ExpressionPlan>, SQLError>
Auto Trait Implementations§
impl !RefUnwindSafe for MutableExpressionPlan
impl !UnwindSafe for MutableExpressionPlan
impl Freeze for MutableExpressionPlan
impl Send for MutableExpressionPlan
impl Sync for MutableExpressionPlan
impl Unpin for MutableExpressionPlan
impl UnsafeUnpin for MutableExpressionPlan
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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