pub enum ComponentPlan<'a> {
Detect,
Whole,
Split(&'a [ComponentVtree]),
}Expand description
Which independent components a compile splits the formula into.
Variants§
Detect
Find them; with two or more, compile each on a balanced vtree of its
own and leave vtree unused.
Whole
Compile the formula whole, against the supplied root vtree.
Split(&'a [ComponentVtree])
Compile the components the caller already built trees for, in this order.
Implementations§
Source§impl<'a> ComponentPlan<'a>
impl<'a> ComponentPlan<'a>
Sourcepub fn from_components(components: Option<&'a [ComponentVtree]>) -> Self
pub fn from_components(components: Option<&'a [ComponentVtree]>) -> Self
Interpret a construction’s component trees: a component list is an exact split plan, and absence is an explicit whole-formula plan.
Trait Implementations§
Source§impl<'a> Clone for ComponentPlan<'a>
impl<'a> Clone for ComponentPlan<'a>
Source§fn clone(&self) -> ComponentPlan<'a>
fn clone(&self) -> ComponentPlan<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Default for ComponentPlan<'a>
impl<'a> Default for ComponentPlan<'a>
Source§fn default() -> ComponentPlan<'a>
fn default() -> ComponentPlan<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for ComponentPlan<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentPlan<'a>
impl<'a> RefUnwindSafe for ComponentPlan<'a>
impl<'a> Send for ComponentPlan<'a>
impl<'a> Sync for ComponentPlan<'a>
impl<'a> Unpin for ComponentPlan<'a>
impl<'a> UnwindSafe for ComponentPlan<'a>
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