pub struct StateDecl {
pub id: String,
pub local: String,
pub block: String,
pub layer: Option<usize>,
pub section: Section,
pub kind: StateKind,
pub format: StateFormat,
pub elements: u64,
pub verify: Option<VerifySteps>,
pub lifetime: Lifetime,
}Expand description
2026-09-30: One declared state of one block instance.
Fields§
§id: String2026-09-30: <block prefix>.<local> (l0.gdn.h, draft.attn.k).
local: String2026-09-30: The template-local id (h, conv, k, v).
block: String2026-09-30: The block template.
layer: Option<usize>2026-09-30: The layer, when the block is a layer’s.
section: Section2026-09-30: Main or draft.
kind: StateKind2026-09-30: What it is.
format: StateFormat2026-09-30: Storage format.
elements: u642026-09-30: Elements per unit (slot or token).
verify: Option<VerifySteps>2026-09-30: The verify intermediates a recurrent state keeps; None for a KV side.
lifetime: Lifetime2026-09-30: How long a live unit lives (Lifetime::of_kind).
Trait Implementations§
impl Eq for StateDecl
impl StructuralPartialEq for StateDecl
Auto Trait Implementations§
impl Freeze for StateDecl
impl RefUnwindSafe for StateDecl
impl Send for StateDecl
impl Sync for StateDecl
impl Unpin for StateDecl
impl UnwindSafe for StateDecl
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.