Struct keynergy::finger::Finger [−][src]
pub struct Finger {
pub hand: Hand,
pub kind: FingerKind,
}Fields
hand: Handkind: FingerKindImplementations
Returns the direction between self and the argument f.
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::Outward, ri.dir_to(rm));
assert_eq!(Direction::Inward, rm.dir_to(ri));
assert_eq!(Direction::None, ri.dir_to(ri));Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Finger
impl UnwindSafe for Finger
Blanket Implementations
Mutably borrows from an owned value. Read more
