Struct fermium::audio::SDL_AudioDeviceID[][src]

#[repr(transparent)]pub struct SDL_AudioDeviceID(pub u32);

Identifies an audio device.

A successful call to SDL_OpenAudio is always device id 1, and legacy SDL audio APIs assume you want this device ID. SDL_OpenAudioDevice calls always returns devices >= 2 on success. The legacy calls are good both for backwards compatibility and when you don’t care about multiple devices, specific devices, or capture devices.

Trait Implementations

impl Clone for SDL_AudioDeviceID[src]

impl Copy for SDL_AudioDeviceID[src]

impl Debug for SDL_AudioDeviceID[src]

impl Default for SDL_AudioDeviceID[src]

impl Eq for SDL_AudioDeviceID[src]

impl Hash for SDL_AudioDeviceID[src]

impl Ord for SDL_AudioDeviceID[src]

impl PartialEq<SDL_AudioDeviceID> for SDL_AudioDeviceID[src]

impl PartialOrd<SDL_AudioDeviceID> for SDL_AudioDeviceID[src]

impl StructuralEq for SDL_AudioDeviceID[src]

impl StructuralPartialEq for SDL_AudioDeviceID[src]

Auto Trait Implementations

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, 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.