pub struct PlacedFragment { /* private fields */ }Expand description
A graph node placed at a site with its wired input and output edges.
Identifies the fragment, holds the Expr node it evaluates, and tracks
the StreamEdges feeding into and out of it.
Implementations§
Source§impl PlacedFragment
impl PlacedFragment
Sourcepub fn new(id: Symbol, node: Expr) -> Self
pub fn new(id: Symbol, node: Expr) -> Self
Creates a fragment for id evaluating node, with no edges yet.
Sourcepub fn with_input_edge(self, edge: StreamEdge) -> Self
pub fn with_input_edge(self, edge: StreamEdge) -> Self
Returns the fragment with edge appended to its input edges.
Sourcepub fn with_output_edge(self, edge: StreamEdge) -> Self
pub fn with_output_edge(self, edge: StreamEdge) -> Self
Returns the fragment with edge appended to its output edges.
Sourcepub fn input_edges(&self) -> &[StreamEdge]
pub fn input_edges(&self) -> &[StreamEdge]
Returns the fragment’s input edges.
Sourcepub fn output_edges(&self) -> &[StreamEdge]
pub fn output_edges(&self) -> &[StreamEdge]
Returns the fragment’s output edges.
Sourcepub fn output_envelopes(&self) -> Vec<StreamEnvelope>
pub fn output_envelopes(&self) -> Vec<StreamEnvelope>
Collects the envelopes buffered across every output edge.
Trait Implementations§
Source§impl Clone for PlacedFragment
impl Clone for PlacedFragment
Source§fn clone(&self) -> PlacedFragment
fn clone(&self) -> PlacedFragment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlacedFragment
impl Debug for PlacedFragment
impl Eq for PlacedFragment
Source§impl PartialEq for PlacedFragment
impl PartialEq for PlacedFragment
Source§fn eq(&self, other: &PlacedFragment) -> bool
fn eq(&self, other: &PlacedFragment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlacedFragment
Auto Trait Implementations§
impl Freeze for PlacedFragment
impl RefUnwindSafe for PlacedFragment
impl Send for PlacedFragment
impl Sync for PlacedFragment
impl Unpin for PlacedFragment
impl UnsafeUnpin for PlacedFragment
impl UnwindSafe for PlacedFragment
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