pub struct MermaidGenerator;Expand description
Generates Mermaid diagrams from FlowDefinition.
Implementations§
Source§impl MermaidGenerator
impl MermaidGenerator
Sourcepub fn generate<S: FlowState>(def: &FlowDefinition<S>) -> String
pub fn generate<S: FlowState>(def: &FlowDefinition<S>) -> String
Generate Mermaid stateDiagram-v2 (state transitions).
Sourcepub fn generate_with_options<S: FlowState>(
def: &FlowDefinition<S>,
exclude_error_transitions: bool,
) -> String
pub fn generate_with_options<S: FlowState>( def: &FlowDefinition<S>, exclude_error_transitions: bool, ) -> String
Generate Mermaid stateDiagram-v2 with options.
Sourcepub fn generate_data_flow<S: FlowState>(def: &FlowDefinition<S>) -> String
pub fn generate_data_flow<S: FlowState>(def: &FlowDefinition<S>) -> String
Generate Mermaid data-flow diagram from requires/produces.
Auto Trait Implementations§
impl Freeze for MermaidGenerator
impl RefUnwindSafe for MermaidGenerator
impl Send for MermaidGenerator
impl Sync for MermaidGenerator
impl Unpin for MermaidGenerator
impl UnsafeUnpin for MermaidGenerator
impl UnwindSafe for MermaidGenerator
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