pub struct Hint {
pub device: Device,
pub binding: Binding,
pub pad: Option<PadKind>,
pub label: String,
}Expand description
How one action’s binding is shown to the player — see the module docs.
Fields§
§device: DeviceThe kind of device the binding listens to — Binding::device of
Hint::binding.
binding: BindingThe binding shown.
pad: Option<PadKind>The pad family the label names the binding for, when the binding is a
pad’s; None for every other device.
label: StringWhat to print: the binding as the player’s device names it.
Trait Implementations§
impl StructuralPartialEq for Hint
Auto Trait Implementations§
impl Freeze for Hint
impl RefUnwindSafe for Hint
impl Send for Hint
impl Sync for Hint
impl Unpin for Hint
impl UnsafeUnpin for Hint
impl UnwindSafe for Hint
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