rlr/actions/mod.rs
1//! Actions represent steps that can be taken to transition a model from one
2//! state to another.
3
4/// Represents an action that can be applied to the model's current state.
5pub trait Actioner<'a> {
6 /// Returns a string representation of the given action.
7 /// Implementors shoud take care to ensure this is a consistent hash for a
8 /// given state.
9 fn id(&self) -> &'a str;
10}