pub struct ScalarQueryArena { /* private fields */ }Expand description
A private scalar-query namespace. Its syntax and constructor records move together; observers can borrow children while only owning operations can add them.
Implementations§
Source§impl ScalarQueryArena
impl ScalarQueryArena
pub fn map_query( &mut self, index: usize, control: &ProductionControl<'_>, map: impl FnOnce(MutableQueryPlan) -> Result<MutableQueryPlan, SQLError>, ) -> Result<(), SQLError>
Sourcepub fn append_expression(
&mut self,
expression: MutableExpressionPlan,
control: &ProductionControl<'_>,
) -> Result<OwnedScalarExpr, SQLError>
pub fn append_expression( &mut self, expression: MutableExpressionPlan, control: &ProductionControl<'_>, ) -> Result<OwnedScalarExpr, SQLError>
Add an owning expression to this namespace, moving its query children exactly once and preserving their private nested arenas.
pub fn queries(&self) -> &[QueryPlan]
Sourcepub fn copy_subquery_occurrences(
&mut self,
expression: OwnedScalarExpr,
control: &ProductionControl<'_>,
) -> Result<OwnedScalarExpr, SQLError>
pub fn copy_subquery_occurrences( &mut self, expression: OwnedScalarExpr, control: &ProductionControl<'_>, ) -> Result<OwnedScalarExpr, SQLError>
Give every scalar-query occurrence a new result-cache identity. Even repeated references to one source slot are copied independently, in the existing child-before-parent scalar order.
Source§impl ScalarQueryArena
impl ScalarQueryArena
Transfer the arena buffer and its existing payload ownership into shared storage without copying a query or changing its private slot identity.
Auto Trait Implementations§
impl !RefUnwindSafe for ScalarQueryArena
impl !UnwindSafe for ScalarQueryArena
impl Freeze for ScalarQueryArena
impl Send for ScalarQueryArena
impl Sync for ScalarQueryArena
impl Unpin for ScalarQueryArena
impl UnsafeUnpin for ScalarQueryArena
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