pub struct BlockInstance {
pub template: String,
pub layer: Option<usize>,
pub section: Section,
pub first: NodeIdx,
pub end: NodeIdx,
pub stream_in: Option<EdgeIdx>,
pub stream_out: Option<EdgeIdx>,
}Expand description
2026-09-28: One instantiated block: its template and the node range it produced.
Fields§
§template: String2026-09-28: Template name.
layer: Option<usize>2026-09-28: Layer index; None for the prologue, epilogue and draft.
section: Section2026-09-28: Main or draft.
first: NodeIdx2026-09-28: First node.
end: NodeIdx2026-09-28: One past the last node.
stream_in: Option<EdgeIdx>2026-09-28: The stream edge entering the block, if it reads one.
stream_out: Option<EdgeIdx>2026-09-28: The stream edge leaving it, if it writes one.
Trait Implementations§
Source§impl Clone for BlockInstance
impl Clone for BlockInstance
Source§fn clone(&self) -> BlockInstance
fn clone(&self) -> BlockInstance
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 Debug for BlockInstance
impl Debug for BlockInstance
Source§impl PartialEq for BlockInstance
impl PartialEq for BlockInstance
impl Eq for BlockInstance
impl StructuralPartialEq for BlockInstance
Auto Trait Implementations§
impl Freeze for BlockInstance
impl RefUnwindSafe for BlockInstance
impl Send for BlockInstance
impl Sync for BlockInstance
impl Unpin for BlockInstance
impl UnwindSafe for BlockInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.