pub struct CodebaseState {
pub index: usize,
pub rust_name: &'static str,
pub label: Option<&'static str>,
pub description: Option<&'static str>,
pub docs: Option<&'static str>,
pub has_data: bool,
pub direct_construction_available: bool,
pub is_graph_root: bool,
}Expand description
One state in the codebase export surface.
Fields§
§index: usizeStable machine-local state index.
rust_name: &'static strRust variant name emitted by Statum.
label: Option<&'static str>Optional human-facing state label.
description: Option<&'static str>Optional human-facing state description.
docs: Option<&'static str>Optional longer-form source documentation from outer rustdoc comments.
has_data: boolWhether the state carries state_data.
direct_construction_available: boolWhether direct construction is available for this state.
is_graph_root: boolWhether the state has no incoming transition in its machine.
Implementations§
Source§impl CodebaseState
impl CodebaseState
Sourcepub fn display_label(&self) -> Cow<'static, str>
pub fn display_label(&self) -> Cow<'static, str>
Human-facing state label used by text renderers.
Trait Implementations§
Source§impl Clone for CodebaseState
impl Clone for CodebaseState
Source§fn clone(&self) -> CodebaseState
fn clone(&self) -> CodebaseState
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 CodebaseState
impl Debug for CodebaseState
Source§impl PartialEq for CodebaseState
impl PartialEq for CodebaseState
Source§impl Serialize for CodebaseState
impl Serialize for CodebaseState
impl Copy for CodebaseState
impl Eq for CodebaseState
impl StructuralPartialEq for CodebaseState
Auto Trait Implementations§
impl Freeze for CodebaseState
impl RefUnwindSafe for CodebaseState
impl Send for CodebaseState
impl Sync for CodebaseState
impl Unpin for CodebaseState
impl UnsafeUnpin for CodebaseState
impl UnwindSafe for CodebaseState
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