mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
move ported cpp_shared resources
This commit is contained in:
14
src/common/cpp_essentials/direction.rs
Normal file
14
src/common/cpp_essentials/direction.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
#[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,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user