Enum keynergy::direction::Direction [−][src]
pub enum Direction {
Inward,
Outward,
None,
}Expand description
Defines a direction between two fingers.
Variants
Inward
Goes from pinky to index.
Outward
Goes from index to pinky.
None
No direction. Usually when the two fingers are the same.
Implementations
Returns the Direction from finger a to finger b.
Example
use keynergy::{Finger, Hand, FingerKind, Direction};
let ri = Finger::new(Hand::Right, FingerKind::Index);
let rm = Finger::new(Hand::Right, FingerKind::Middle);
assert_eq!(Direction::Inward, Direction::from(rm, ri));
assert_eq!(Direction::Outward, Direction::from(ri, rm));Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Direction
impl UnwindSafe for Direction
Blanket Implementations
Mutably borrows from an owned value. Read more
