[][src]Enum sdl2::joystick::PowerLevel

#[repr(i32)]pub enum PowerLevel {
    Unknown,
    Empty,
    Low,
    Medium,
    Full,
    Wired,
}

Variants

Unknown
Empty
Low
Medium
Full
Wired

Methods

impl PowerLevel[src]

pub fn from_ll(raw: SDL_JoystickPowerLevel) -> PowerLevel[src]

pub fn to_ll(self) -> SDL_JoystickPowerLevel[src]

Trait Implementations

impl Clone for PowerLevel[src]

impl Copy for PowerLevel[src]

impl Debug for PowerLevel[src]

impl Eq for PowerLevel[src]

impl Hash for PowerLevel[src]

impl PartialEq<PowerLevel> for PowerLevel[src]

impl StructuralEq for PowerLevel[src]

impl StructuralPartialEq for PowerLevel[src]

Auto Trait Implementations

impl RefUnwindSafe for PowerLevel

impl Send for PowerLevel

impl Sync for PowerLevel

impl Unpin for PowerLevel

impl UnwindSafe for PowerLevel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.