#[repr(C)]pub struct SDL_AudioSpec {
pub freq: c_int,
pub format: u16,
pub channels: u8,
pub silence: u8,
pub samples: u16,
pub padding: u16,
pub size: u32,
pub callback: *mut u8,
pub userdata: *mut c_void,
}Fields§
§freq: c_int§format: u16§channels: u8§silence: u8§samples: u16§padding: u16§size: u32§callback: *mut u8§userdata: *mut c_voidTrait Implementations§
Source§impl Clone for SDL_AudioSpec
impl Clone for SDL_AudioSpec
Source§fn clone(&self) -> SDL_AudioSpec
fn clone(&self) -> SDL_AudioSpec
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 moreimpl Copy for SDL_AudioSpec
Auto Trait Implementations§
impl Freeze for SDL_AudioSpec
impl RefUnwindSafe for SDL_AudioSpec
impl !Send for SDL_AudioSpec
impl !Sync for SDL_AudioSpec
impl Unpin for SDL_AudioSpec
impl UnwindSafe for SDL_AudioSpec
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