pub trait StateIdConversion {
// Required methods
fn to_state_id(&self, interner: &StringInterner) -> StateId;
fn from_state_id(id: StateId, interner: &StringInterner) -> Option<String>;
}Expand description
Helper trait for converting between strings and StateIds
Required Methods§
Sourcefn to_state_id(&self, interner: &StringInterner) -> StateId
fn to_state_id(&self, interner: &StringInterner) -> StateId
Convert a string slice to a StateId using the interner
Sourcefn from_state_id(id: StateId, interner: &StringInterner) -> Option<String>
fn from_state_id(id: StateId, interner: &StringInterner) -> Option<String>
Convert a StateId back to a string using the interner
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.