pub struct Wavefront {
pub level: usize,
pub nodes: Vec<NodeId>,
pub max_cost: u64,
pub total_cost: u64,
}Expand description
One wavefront: a set of mutually-independent nodes at the same topological level, all of which may be launched concurrently.
Fields§
§level: usizeThe level index (longest-path distance in edges from any source).
nodes: Vec<NodeId>Nodes in this wave, in ascending NodeId order for determinism.
max_cost: u64The maximum per-node cost in this wave — the wave’s own duration when every node runs on its own stream.
total_cost: u64The summed per-node cost in this wave — the wave’s duration when forced onto a single stream.
Implementations§
Trait Implementations§
impl Eq for Wavefront
impl StructuralPartialEq for Wavefront
Auto Trait Implementations§
impl Freeze for Wavefront
impl RefUnwindSafe for Wavefront
impl Send for Wavefront
impl Sync for Wavefront
impl Unpin for Wavefront
impl UnsafeUnpin for Wavefront
impl UnwindSafe for Wavefront
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