pub struct MorselPlan { /* private fields */ }Expand description
Return result of MorselPlanner::plan.
§Logical Ordering
For plans where the output order of rows is maintained, the output order of
a MorselPlanner is logically defined as follows:
- All morsels that are directly produced
- Recursively, all morsels produced by the returned
planners
Implementations§
Source§impl MorselPlan
impl MorselPlan
Sourcepub fn with_morsels(self, morsels: Vec<Box<dyn Morsel>>) -> Self
pub fn with_morsels(self, morsels: Vec<Box<dyn Morsel>>) -> Self
Set the ready morsels.
Sourcepub fn with_planners(self, planners: Vec<Box<dyn MorselPlanner>>) -> Self
pub fn with_planners(self, planners: Vec<Box<dyn MorselPlanner>>) -> Self
Set the ready child planners.
Sourcepub fn with_pending_planner<F>(self, io_future: F) -> Self
pub fn with_pending_planner<F>(self, io_future: F) -> Self
Set the pending planner for an I/O phase.
Sourcepub fn set_pending_planner<F>(&mut self, io_future: F)
pub fn set_pending_planner<F>(&mut self, io_future: F)
Set the pending planner for an I/O phase.
Sourcepub fn take_morsels(&mut self) -> Vec<Box<dyn Morsel>>
pub fn take_morsels(&mut self) -> Vec<Box<dyn Morsel>>
Take the ready morsels.
Sourcepub fn take_ready_planners(&mut self) -> Vec<Box<dyn MorselPlanner>>
pub fn take_ready_planners(&mut self) -> Vec<Box<dyn MorselPlanner>>
Take the ready child planners.
Sourcepub fn take_pending_planner(&mut self) -> Option<PendingMorselPlanner>
pub fn take_pending_planner(&mut self) -> Option<PendingMorselPlanner>
Take the pending I/O future, if any.
Sourcepub fn has_io_future(&self) -> bool
pub fn has_io_future(&self) -> bool
Returns true if this plan contains an I/O future.
Trait Implementations§
Source§impl Default for MorselPlan
impl Default for MorselPlan
Source§fn default() -> MorselPlan
fn default() -> MorselPlan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MorselPlan
impl !Sync for MorselPlan
impl !UnwindSafe for MorselPlan
impl Freeze for MorselPlan
impl Send for MorselPlan
impl Unpin for MorselPlan
impl UnsafeUnpin for MorselPlan
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
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