Enum sdl2::joystick::PowerLevel
source · #[repr(i32)]pub enum PowerLevel {
Unknown = -1,
Empty = 0,
Low = 1,
Medium = 2,
Full = 3,
Wired = 4,
}
Variants§
Implementations§
source§impl PowerLevel
impl PowerLevel
pub fn from_ll(raw: SDL_JoystickPowerLevel) -> PowerLevel
pub fn to_ll(&self) -> SDL_JoystickPowerLevel
Trait Implementations§
source§impl Clone for PowerLevel
impl Clone for PowerLevel
source§fn clone(&self) -> PowerLevel
fn clone(&self) -> PowerLevel
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 Debug for PowerLevel
impl Debug for PowerLevel
source§impl Hash for PowerLevel
impl Hash for PowerLevel
source§impl PartialEq for PowerLevel
impl PartialEq for PowerLevel
impl Copy for PowerLevel
impl Eq for PowerLevel
impl StructuralPartialEq for PowerLevel
Auto Trait Implementations§
impl Freeze for PowerLevel
impl RefUnwindSafe for PowerLevel
impl Send for PowerLevel
impl Sync for PowerLevel
impl Unpin for PowerLevel
impl UnwindSafe for PowerLevel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)