pub struct FitProblem {
pub rule: FitRule,
pub screen: Option<&'static str>,
pub actions: Vec<&'static str>,
pub inputs: Vec<String>,
pub message: String,
}Expand description
A way a game’s controls don’t fit a target, naming what it is about.
Fields§
§rule: FitRuleThe rule it breaks.
screen: Option<&'static str>The screen it is about, if one.
actions: Vec<&'static str>The actions it is about, by name.
inputs: Vec<String>The inputs it is about, as the keymap file names them (East,
East+West).
message: StringWhat is wrong, with the names.
Implementations§
Source§impl FitProblem
impl FitProblem
Sourcepub fn is_error(&self) -> bool
pub fn is_error(&self) -> bool
Whether it fails the check (FitRule::is_error).
Trait Implementations§
Source§impl Clone for FitProblem
impl Clone for FitProblem
Source§fn clone(&self) -> FitProblem
fn clone(&self) -> FitProblem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FitProblem
impl Debug for FitProblem
impl Eq for FitProblem
Source§impl PartialEq for FitProblem
impl PartialEq for FitProblem
impl StructuralPartialEq for FitProblem
Auto Trait Implementations§
impl Freeze for FitProblem
impl RefUnwindSafe for FitProblem
impl Send for FitProblem
impl Sync for FitProblem
impl Unpin for FitProblem
impl UnsafeUnpin for FitProblem
impl UnwindSafe for FitProblem
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