Skip to main content

MorselPlan

Struct MorselPlan 

Source
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:

  1. All morsels that are directly produced
  2. Recursively, all morsels produced by the returned planners

Implementations§

Source§

impl MorselPlan

Source

pub fn new() -> Self

Create an empty morsel plan.

Source

pub fn with_morsels(self, morsels: Vec<Box<dyn Morsel>>) -> Self

Set the ready morsels.

Source

pub fn with_planners(self, planners: Vec<Box<dyn MorselPlanner>>) -> Self

Set the ready child planners.

Source

pub fn with_pending_planner<F>(self, io_future: F) -> Self
where F: Future<Output = Result<Box<dyn MorselPlanner>>> + Send + 'static,

Set the pending planner for an I/O phase.

Source

pub fn set_pending_planner<F>(&mut self, io_future: F)
where F: Future<Output = Result<Box<dyn MorselPlanner>>> + Send + 'static,

Set the pending planner for an I/O phase.

Source

pub fn take_morsels(&mut self) -> Vec<Box<dyn Morsel>>

Take the ready morsels.

Source

pub fn take_ready_planners(&mut self) -> Vec<Box<dyn MorselPlanner>>

Take the ready child planners.

Source

pub fn take_pending_planner(&mut self) -> Option<PendingMorselPlanner>

Take the pending I/O future, if any.

Source

pub fn has_io_future(&self) -> bool

Returns true if this plan contains an I/O future.

Trait Implementations§

Source§

impl Default for MorselPlan

Source§

fn default() -> MorselPlan

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

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

Source§

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

Source§

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