1 2 3 4 5 6 7 8 9 10 11
/// Helper trait to get description. pub(crate) trait Description { /// Get the description for the thing. fn description(self) -> &'static str; } impl Description for &'static str { fn description(self) -> Self { self } }