pub struct WholeProgramFabric {
pub cells: Vec<LoopCell>,
pub outputs: Vec<(Src, bool, Option<Src>)>,
}Expand description
The whole-program fabric: a straight-line Main’s cells plus the ordered Srcs it Shows. Evaluating
it yields the program’s output TAPE, compared against the VM’s stdout — this is what covers Show and
validates the whole fabric end-to-end (calls inlined, collections/structs/enums on the shared heap).
Fields§
§cells: Vec<LoopCell>§outputs: Vec<(Src, bool, Option<Src>)>Each Shown value’s driving Src, whether it renders as TEXT (a char-list) vs an Int, and the
policy GRANT guard (Some(0/1 Src)) in force at that Show — eval_whole_program halts the tape at
the first guard that evaluates false (a denied Check). None = ungated (always prints).
Trait Implementations§
Source§impl Clone for WholeProgramFabric
impl Clone for WholeProgramFabric
Source§fn clone(&self) -> WholeProgramFabric
fn clone(&self) -> WholeProgramFabric
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 moreAuto Trait Implementations§
impl Freeze for WholeProgramFabric
impl RefUnwindSafe for WholeProgramFabric
impl Send for WholeProgramFabric
impl Sync for WholeProgramFabric
impl Unpin for WholeProgramFabric
impl UnsafeUnpin for WholeProgramFabric
impl UnwindSafe for WholeProgramFabric
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.