16 lines
337 B
Rust
16 lines
337 B
Rust
use std::fmt::Display;
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
pub enum Side {
|
|
Left,
|
|
Right,
|
|
}
|
|
|
|
impl Display for Side {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
match self {
|
|
Side::Left => write!(f, "Left"),
|
|
Side::Right => write!(f, "Right"),
|
|
}
|
|
}
|
|
}
|