pub struct Project<P: Implementable> {
pub variables: Vec<u32>,
pub plan: Box<P>,
}
Expand description
A plan stage projecting its source to only the specified sequence of variables. Throws on unbound variables. Frontends are responsible for ensuring that the source binds all requested variables.
Fields§
§variables: Vec<u32>
TODO
plan: Box<P>
Plan for the data source.
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for Project<P>where
P: Deserialize<'de> + Implementable,
impl<'de, P> Deserialize<'de> for Project<P>where
P: Deserialize<'de> + Implementable,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P: Implementable> Implementable for Project<P>
impl<P: Implementable> Implementable for Project<P>
Source§fn dependencies(&self) -> Dependencies
fn dependencies(&self) -> Dependencies
Returns names of any other implementable things that need to
be available before implementing this one. Attributes are not
mentioned explicitley as dependencies.
Source§fn into_bindings(&self) -> Vec<Binding>
fn into_bindings(&self) -> Vec<Binding>
Transforms an implementable into an equivalent set of bindings
that can be unified by Hector.
Source§impl<P: Ord + Implementable> Ord for Project<P>
impl<P: Ord + Implementable> Ord for Project<P>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P: PartialOrd + Implementable> PartialOrd for Project<P>
impl<P: PartialOrd + Implementable> PartialOrd for Project<P>
impl<P: Eq + Implementable> Eq for Project<P>
impl<P: Implementable> StructuralPartialEq for Project<P>
Auto Trait Implementations§
impl<P> Freeze for Project<P>
impl<P> RefUnwindSafe for Project<P>where
P: RefUnwindSafe,
impl<P> Send for Project<P>where
P: Send,
impl<P> Sync for Project<P>where
P: Sync,
impl<P> Unpin for Project<P>
impl<P> UnwindSafe for Project<P>where
P: UnwindSafe,
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