pub struct ContainerDef {
pub id: DefinitionId,
pub scope_id: DefinitionId,
pub name: Option<NameId>,
pub bytecode: Vec<u8>,
pub counting_flags: CountingFlags,
pub path_hash: i32,
}Expand description
A compiled container (knot, stitch, gather, or anonymous flow block).
Fields§
§id: DefinitionId§scope_id: DefinitionIdThe lexical scope this container belongs to.
For scope containers (root, knot, stitch): scope_id == id.
For child containers (gather, choice target, sequence, etc.): scope_id is
the enclosing scope’s DefinitionId.
name: Option<NameId>Human-readable name for scope-owning containers (root, knot, stitch).
None for child containers.
bytecode: Vec<u8>§counting_flags: CountingFlags§path_hash: i32Sum of char values from the container’s ink path string. Used to seed the RNG for shuffle sequences.
Trait Implementations§
Source§impl Clone for ContainerDef
impl Clone for ContainerDef
Source§fn clone(&self) -> ContainerDef
fn clone(&self) -> ContainerDef
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 ContainerDef
impl Debug for ContainerDef
Source§impl PartialEq for ContainerDef
impl PartialEq for ContainerDef
Source§fn eq(&self, other: &ContainerDef) -> bool
fn eq(&self, other: &ContainerDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContainerDef
Auto Trait Implementations§
impl Freeze for ContainerDef
impl RefUnwindSafe for ContainerDef
impl Send for ContainerDef
impl Sync for ContainerDef
impl Unpin for ContainerDef
impl UnsafeUnpin for ContainerDef
impl UnwindSafe for ContainerDef
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