Trait macro_machines::MachineDotfile
[−]
[src]
pub trait MachineDotfile { 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>; fn dotfile() -> String
where
Self: Sized, { ... } fn dotfile_show_defaults() -> String
where
Self: Sized, { ... } fn dotfile_pretty_defaults() -> String
where
Self: Sized, { ... } }
Methods for dotfile creation
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,
Self: Sized,
Generate a dotfile for the state machine that hides default expressions for state fields and extended state fields
fn dotfile_show_defaults() -> String where
Self: Sized,
Self: Sized,
Generate a dotfile for the state machine that shows default expressions for state fields and extended state fields
fn dotfile_pretty_defaults() -> String where
Self: Sized,
Self: Sized,
Generate a dotfile 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.