[−][src]Function liblet::automaton::transition
pub fn transition(string: &str) -> Transition<Symbol>
Convenience method for creating a transition of symbols from a string.
It returns the transition directly, as opposed to the Result
returned from
the transition from_string method.
Panics
Panics if converting the string to transition is not possible as specified in the transition from_string method.
Examples
use liblet::automaton::transition; let t = transition("A -> label -> B");