usestd::borrow::Borrow;/// A validated identifier for a state within a machine.
////// `StateName` exists to represent the domain concept of a state.
/// Future versions will enforce naming invariants during construction.
#[derive(Debug, PartialEq, Clone, Hash, Eq)]pub(crate)structStateName(String);implStateName{/// Convert the state to type &str.
pubfnas_str(&self)->&str{&self.0}}implFrom<&str>forStateName{fnfrom(s:&str)->Self{Self(s.to_string())}}implFrom<String>forStateName{fnfrom(value: String)->Self{Self(value)}}implBorrow<str>forStateName{fnborrow(&self)->&str{self.as_str()}}