pub struct LinkedMachineGraph {
pub machine: MachineDescriptor,
pub label: Option<&'static str>,
pub description: Option<&'static str>,
pub docs: Option<&'static str>,
pub states: &'static [LinkedStateDescriptor],
pub transitions: LinkedTransitionInventory,
pub static_links: &'static [StaticMachineLinkDescriptor],
}Expand description
Erased machine graph emitted for codebase-level export over the linked build.
Fields§
§machine: MachineDescriptorRust-facing identity of the machine family.
label: Option<&'static str>Optional human-facing machine label.
description: Option<&'static str>Optional human-facing machine description.
docs: Option<&'static str>Optional longer-form source documentation from outer rustdoc comments.
states: &'static [LinkedStateDescriptor]All states known to the machine.
transitions: LinkedTransitionInventoryAll transition sites known to the machine.
static_links: &'static [StaticMachineLinkDescriptor]Direct machine-like payload references written in state data.
Implementations§
Source§impl LinkedMachineGraph
impl LinkedMachineGraph
Sourcepub fn state(&self, rust_name: &str) -> Option<&LinkedStateDescriptor>
pub fn state(&self, rust_name: &str) -> Option<&LinkedStateDescriptor>
Finds a state descriptor by Rust state name.
Sourcepub fn transitions_from(
&self,
state: &'static str,
) -> impl Iterator<Item = &LinkedTransitionDescriptor> + '_
pub fn transitions_from( &self, state: &'static str, ) -> impl Iterator<Item = &LinkedTransitionDescriptor> + '_
Yields all transition sites originating from state.
Sourcepub fn transition_from_method(
&self,
state: &'static str,
method_name: &str,
) -> Option<&LinkedTransitionDescriptor>
pub fn transition_from_method( &self, state: &'static str, method_name: &str, ) -> Option<&LinkedTransitionDescriptor>
Finds the transition site for method_name on state.
Trait Implementations§
Source§impl Clone for LinkedMachineGraph
impl Clone for LinkedMachineGraph
Source§fn clone(&self) -> LinkedMachineGraph
fn clone(&self) -> LinkedMachineGraph
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 LinkedMachineGraph
impl Debug for LinkedMachineGraph
Source§impl PartialEq for LinkedMachineGraph
impl PartialEq for LinkedMachineGraph
impl Copy for LinkedMachineGraph
impl Eq for LinkedMachineGraph
impl StructuralPartialEq for LinkedMachineGraph
Auto Trait Implementations§
impl Freeze for LinkedMachineGraph
impl RefUnwindSafe for LinkedMachineGraph
impl Send for LinkedMachineGraph
impl Sync for LinkedMachineGraph
impl Unpin for LinkedMachineGraph
impl UnsafeUnpin for LinkedMachineGraph
impl UnwindSafe for LinkedMachineGraph
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