Enum sdl2_sys::SDL_JoystickPowerLevel
source · #[repr(i32)]pub enum SDL_JoystickPowerLevel {
SDL_JOYSTICK_POWER_UNKNOWN = -1,
SDL_JOYSTICK_POWER_EMPTY = 0,
SDL_JOYSTICK_POWER_LOW = 1,
SDL_JOYSTICK_POWER_MEDIUM = 2,
SDL_JOYSTICK_POWER_FULL = 3,
SDL_JOYSTICK_POWER_WIRED = 4,
SDL_JOYSTICK_POWER_MAX = 5,
}
Variants§
SDL_JOYSTICK_POWER_UNKNOWN = -1
SDL_JOYSTICK_POWER_EMPTY = 0
SDL_JOYSTICK_POWER_LOW = 1
SDL_JOYSTICK_POWER_MEDIUM = 2
SDL_JOYSTICK_POWER_FULL = 3
SDL_JOYSTICK_POWER_WIRED = 4
SDL_JOYSTICK_POWER_MAX = 5
Trait Implementations§
source§impl Clone for SDL_JoystickPowerLevel
impl Clone for SDL_JoystickPowerLevel
source§fn clone(&self) -> SDL_JoystickPowerLevel
fn clone(&self) -> SDL_JoystickPowerLevel
Returns a copy 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 Hash for SDL_JoystickPowerLevel
impl Hash for SDL_JoystickPowerLevel
source§impl PartialEq for SDL_JoystickPowerLevel
impl PartialEq for SDL_JoystickPowerLevel
source§fn eq(&self, other: &SDL_JoystickPowerLevel) -> bool
fn eq(&self, other: &SDL_JoystickPowerLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_JoystickPowerLevel
impl Eq for SDL_JoystickPowerLevel
impl StructuralPartialEq for SDL_JoystickPowerLevel
Auto Trait Implementations§
impl Freeze for SDL_JoystickPowerLevel
impl RefUnwindSafe for SDL_JoystickPowerLevel
impl Send for SDL_JoystickPowerLevel
impl Sync for SDL_JoystickPowerLevel
impl Unpin for SDL_JoystickPowerLevel
impl UnwindSafe for SDL_JoystickPowerLevel
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