pub struct MachineDoc<S: 'static, T: 'static> { /* private fields */ }Expand description
Static machine graph exported directly from MachineIntrospection::GRAPH.
This type is authoritative only for machine-local topology: states, transition sites, exact legal targets, and graph roots derivable from the static graph itself.
Implementations§
Source§impl<S, T> MachineDoc<S, T>where
S: Eq,
impl<S, T> MachineDoc<S, T>where
S: Eq,
Source§impl<S, T> MachineDoc<S, T>
impl<S, T> MachineDoc<S, T>
Sourcepub fn export_with_presentation<MachineMeta, StateMeta, TransitionMeta>(
&self,
presentation: &MachinePresentation<S, T, MachineMeta, StateMeta, TransitionMeta>,
) -> Result<ExportDoc, ExportDocError>
pub fn export_with_presentation<MachineMeta, StateMeta, TransitionMeta>( &self, presentation: &MachinePresentation<S, T, MachineMeta, StateMeta, TransitionMeta>, ) -> Result<ExportDoc, ExportDocError>
Builds the canonical stable export model and joins matching labels and descriptions from a presentation overlay.
Source§impl<S, T> MachineDoc<S, T>
impl<S, T> MachineDoc<S, T>
Source§impl<S, T> MachineDoc<S, T>
impl<S, T> MachineDoc<S, T>
Source§impl<S, T> MachineDoc<S, T>
impl<S, T> MachineDoc<S, T>
Source§impl<S, T> MachineDoc<S, T>
impl<S, T> MachineDoc<S, T>
Sourcepub fn from_machine<M>() -> Selfwhere
M: MachineIntrospection<StateId = S, TransitionId = T>,
pub fn from_machine<M>() -> Selfwhere
M: MachineIntrospection<StateId = S, TransitionId = T>,
Exports one machine family from a concrete MachineIntrospection type.
This is the normal entry point when the graph comes from Statum itself.
It will panic only if Statum emitted an invalid
MachineIntrospection::GRAPH.
Sourcepub fn try_from_graph(
graph: &'static MachineGraph<S, T>,
) -> Result<Self, MachineDocError>
pub fn try_from_graph( graph: &'static MachineGraph<S, T>, ) -> Result<Self, MachineDocError>
Exports one externally supplied machine graph after validating it.
Use this when the graph does not come from a concrete Statum machine
type and you want malformed external graphs to fail closed with
MachineDocError instead of being rendered best-effort.
Trait Implementations§
Source§impl<S: Clone + 'static, T: Clone + 'static> Clone for MachineDoc<S, T>
impl<S: Clone + 'static, T: Clone + 'static> Clone for MachineDoc<S, T>
Source§fn clone(&self) -> MachineDoc<S, T>
fn clone(&self) -> MachineDoc<S, T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more