pub struct Plan { /* private fields */ }Expand description
The analysis result for one pipeline.
Implementations§
Source§impl Plan
impl Plan
Sourcepub fn build(image: &Image, options: PlanOptions) -> Result<Self>
pub fn build(image: &Image, options: PlanOptions) -> Result<Self>
Analyse image’s graph.
§Errors
Propagates Op::input_regions for any op whose demand mapping
rejects a region this plan would ask for.
Sourcepub fn node(&self, id: NodeId) -> Option<NodePlan>
pub fn node(&self, id: NodeId) -> Option<NodePlan>
The plan for one node, if it is part of this pipeline.
Sourcepub fn output_tiles(&self) -> &[Region]
pub fn output_tiles(&self) -> &[Region]
The output regions the sink will pull, in order.
Sourcepub fn materializes(&self) -> bool
pub fn materializes(&self) -> bool
Whether any node in the pipeline must be materialized.
A pipeline with no materialization points runs in memory bounded by tiles in flight; one with them buffers a full intermediate per point (SPEC §Guarantees 1).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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