pub trait DirectionList: Sized {
// Required methods
fn directions() -> &'static [Self];
fn positive_directions() -> &'static [Self];
}Expand description
List all possible direction
Required Methods§
Sourcefn directions() -> &'static [Self]
fn directions() -> &'static [Self]
List all directions.
Sourcefn positive_directions() -> &'static [Self]
fn positive_directions() -> &'static [Self]
List all positive directions.
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.