mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
15 lines
280 B
Rust
15 lines
280 B
Rust
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
|
|
pub enum Direction {
|
|
Left = -1,
|
|
Right = 1,
|
|
}
|
|
|
|
impl From<Direction> for i32 {
|
|
fn from(value: Direction) -> Self {
|
|
match value {
|
|
Direction::Left => -1,
|
|
Direction::Right => 1,
|
|
}
|
|
}
|
|
}
|