pub enum Controller {
WiiWheel,
Nunchuk,
Classic,
Gamecube,
}Expand description
The input controller used to record a Mario Kart Wii ghost.
Variants§
Trait Implementations§
Source§impl Clone for Controller
impl Clone for Controller
Source§fn clone(&self) -> Controller
fn clone(&self) -> Controller
Returns a duplicate of the value. Read more
1.0.0 · 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 Controller
impl Debug for Controller
Source§impl Display for Controller
Formats the controller as its display name (e.g. "Wii Wheel", "Gamecube").
impl Display for Controller
Formats the controller as its display name (e.g. "Wii Wheel", "Gamecube").
Source§impl From<Controller> for u8
Converts a Controller into its raw byte representation for the RKG header.
impl From<Controller> for u8
Converts a Controller into its raw byte representation for the RKG header.
Source§fn from(value: Controller) -> Self
fn from(value: Controller) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Controller
impl PartialEq for Controller
Source§impl TryFrom<u8> for Controller
Converts a raw byte value from the RKG header into a Controller.
impl TryFrom<u8> for Controller
Converts a raw byte value from the RKG header into a Controller.
§Errors
Returns ControllerError::NonexistentControllerID if the byte does not
correspond to any known controller (valid range is 0–3).
impl Copy for Controller
impl StructuralPartialEq for Controller
Auto Trait Implementations§
impl Freeze for Controller
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnsafeUnpin for Controller
impl UnwindSafe for Controller
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