pub trait MachineDotfile {
Show 21 methods // Required methods fn name() -> &'static str; fn type_vars() -> Vec<String>; fn extended_state_names() -> Vec<&'static str>; fn extended_state_types() -> Vec<&'static str>; fn extended_state_defaults() -> Vec<&'static str>; fn self_reference() -> &'static str; fn states() -> Vec<&'static str>; fn state_data_names() -> Vec<Vec<&'static str>>; fn state_data_types() -> Vec<Vec<&'static str>>; fn state_data_defaults() -> Vec<Vec<&'static str>>; fn state_data_pretty_defaults() -> Vec<Vec<String>>; fn state_initial() -> &'static str; fn state_terminal() -> &'static str; fn events() -> Vec<&'static str>; fn event_sources() -> Vec<&'static str>; fn event_targets() -> Vec<&'static str>; fn event_actions() -> Vec<&'static str>; // Provided methods fn dotfile() -> String where Self: Sized { ... } fn dotfile_show_defaults() -> String where Self: Sized { ... } fn dotfile_pretty_defaults() -> String where Self: Sized { ... } fn dotfile_hide_actions() -> String where Self: Sized { ... }
}
Expand description

Methods for DOT file creation

Required Methods§

source

fn name() -> &'static str

source

fn type_vars() -> Vec<String>

source

fn extended_state_names() -> Vec<&'static str>

source

fn extended_state_types() -> Vec<&'static str>

source

fn extended_state_defaults() -> Vec<&'static str>

source

fn self_reference() -> &'static str

source

fn states() -> Vec<&'static str>

source

fn state_data_names() -> Vec<Vec<&'static str>>

source

fn state_data_types() -> Vec<Vec<&'static str>>

source

fn state_data_defaults() -> Vec<Vec<&'static str>>

source

fn state_data_pretty_defaults() -> Vec<Vec<String>>

source

fn state_initial() -> &'static str

source

fn state_terminal() -> &'static str

source

fn events() -> Vec<&'static str>

source

fn event_sources() -> Vec<&'static str>

source

fn event_targets() -> Vec<&'static str>

source

fn event_actions() -> Vec<&'static str>

Provided Methods§

source

fn dotfile() -> String
where Self: Sized,

Generate a DOT file for the state machine that hides default expressions for state fields and extended state fields, but shows event actions

source

fn dotfile_show_defaults() -> String
where Self: Sized,

Generate a DOT file for the state machine that shows default expressions for state fields and extended state fields

source

fn dotfile_pretty_defaults() -> String
where Self: Sized,

Generate a DOT file for the state machine that pretty prints the values of default expressions for state fields and extended state fields.

⚠ Calling this this function evaluates default expressions and pretty prints the resulting values at runtime.

source

fn dotfile_hide_actions() -> String
where Self: Sized,

Do not show event actions

Object Safety§

This trait is not object safe.

Implementors§