Struct pure_hfsm::builder::NameMapping[][src]

pub struct NameMapping { /* fields omitted */ }
Expand description

Obtain a Target based on serialized state and machine names

Use the NameMapping::target, NameMapping::goto and NameMapping::enter methods to convert a Target with a String state/machine name into a Target with SHandle and SmHandle state names, usable with the crate::StateMachines compact and efficient struct.

The names correspond to the ones you provided in State and StateMachine name fields.

Implementations

Get crate::Target corresponding to this Target

Get a crate::Target::Goto pointing to State named name

Get a crate::Target::Enter pointing to StateMachine named name

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.