pub struct Union<P: Implementable> {
pub variables: Vec<u32>,
pub plans: Vec<P>,
}
Expand description
A plan stage taking the union over its sources. Frontends are responsible to ensure that the sources are union-compatible (i.e. bind all of the same variables in the same order).
Fields§
§variables: Vec<u32>
TODO
plans: Vec<P>
Plan for the data source.
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for Union<P>where
P: Deserialize<'de> + Implementable,
impl<'de, P> Deserialize<'de> for Union<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 Union<P>
impl<P: Implementable> Implementable for Union<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 Union<P>
impl<P: Ord + Implementable> Ord for Union<P>
Source§impl<P: PartialOrd + Implementable> PartialOrd for Union<P>
impl<P: PartialOrd + Implementable> PartialOrd for Union<P>
impl<P: Eq + Implementable> Eq for Union<P>
impl<P: Implementable> StructuralPartialEq for Union<P>
Auto Trait Implementations§
impl<P> Freeze for Union<P>
impl<P> RefUnwindSafe for Union<P>where
P: RefUnwindSafe,
impl<P> Send for Union<P>where
P: Send,
impl<P> Sync for Union<P>where
P: Sync,
impl<P> Unpin for Union<P>where
P: Unpin,
impl<P> UnwindSafe for Union<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