pub enum FitRule {
NoLayout,
NotOnTarget,
MenuSlot,
Unreachable,
Shared,
Undeclared,
}Expand description
Which rule a FitProblem breaks.
Variants§
NoLayout
The keymap has no buttons for a target that has no keyboard.
NotOnTarget
A binding uses a button the target doesn’t have, or a chord it doesn’t list.
MenuSlot
A binding uses a system menu item beyond the target’s slots.
Unreachable
A required action of a screen has no input the target offers.
Two required actions of one screen share an input.
Undeclared
A screen doesn’t declare its actions, so every action counts as its: a warning, not an error.
Implementations§
Trait Implementations§
impl Copy for FitRule
impl Eq for FitRule
Source§impl Ord for FitRule
impl Ord for FitRule
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for FitRule
impl PartialOrd for FitRule
impl StructuralPartialEq for FitRule
Auto Trait Implementations§
impl Freeze for FitRule
impl RefUnwindSafe for FitRule
impl Send for FitRule
impl Sync for FitRule
impl Unpin for FitRule
impl UnsafeUnpin for FitRule
impl UnwindSafe for FitRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more