pub struct CodebaseTransition {
pub index: usize,
pub method_name: &'static str,
pub label: Option<&'static str>,
pub description: Option<&'static str>,
pub docs: Option<&'static str>,
pub from: usize,
pub to: Vec<usize>,
}Expand description
One transition site in the codebase export surface.
Fields§
§index: usizeStable machine-local transition index.
method_name: &'static strRust method name emitted by Statum.
label: Option<&'static str>Optional human-facing transition label.
description: Option<&'static str>Optional human-facing transition description.
docs: Option<&'static str>Optional longer-form source documentation from outer rustdoc comments.
from: usizeStable source-state index.
to: Vec<usize>Stable legal target-state indices for this transition site.
Implementations§
Source§impl CodebaseTransition
impl CodebaseTransition
Sourcepub fn display_label(&self) -> &'static str
pub fn display_label(&self) -> &'static str
Human-facing edge label used by text renderers.
Trait Implementations§
Source§impl Clone for CodebaseTransition
impl Clone for CodebaseTransition
Source§fn clone(&self) -> CodebaseTransition
fn clone(&self) -> CodebaseTransition
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 CodebaseTransition
impl Debug for CodebaseTransition
Source§impl PartialEq for CodebaseTransition
impl PartialEq for CodebaseTransition
Source§impl Serialize for CodebaseTransition
impl Serialize for CodebaseTransition
impl Eq for CodebaseTransition
impl StructuralPartialEq for CodebaseTransition
Auto Trait Implementations§
impl Freeze for CodebaseTransition
impl RefUnwindSafe for CodebaseTransition
impl Send for CodebaseTransition
impl Sync for CodebaseTransition
impl Unpin for CodebaseTransition
impl UnsafeUnpin for CodebaseTransition
impl UnwindSafe for CodebaseTransition
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