pub struct StateProgram {
pub id: StateProgramId,
pub nodes: Vec<StateOpNode>,
}Expand description
2026-09-30: One state program.
Fields§
§id: StateProgramId§nodes: Vec<StateOpNode>Implementations§
Source§impl StateProgram
impl StateProgram
Sourcepub fn bytes(
&self,
circuit: &Circuit,
formats: &BTreeMap<String, StateDtype>,
) -> Result<u64, StateError>
pub fn bytes( &self, circuit: &Circuit, formats: &BTreeMap<String, StateDtype>, ) -> Result<u64, StateError>
2026-09-30: Bytes one sequence’s run of the program moves (or zeroes): one unit of each
node’s state, its keyed format from formats.
Trait Implementations§
Source§impl Clone for StateProgram
impl Clone for StateProgram
Source§fn clone(&self) -> StateProgram
fn clone(&self) -> StateProgram
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 StateProgram
impl Debug for StateProgram
Source§impl PartialEq for StateProgram
impl PartialEq for StateProgram
impl Eq for StateProgram
impl StructuralPartialEq for StateProgram
Auto Trait Implementations§
impl Freeze for StateProgram
impl RefUnwindSafe for StateProgram
impl Send for StateProgram
impl Sync for StateProgram
impl Unpin for StateProgram
impl UnwindSafe for StateProgram
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.