Struct rich_sdl2_rust::mixer::Mix
source · pub struct Mix { /* private fields */ }
Expand description
A root SDL2_mixer controller.
Implementations§
source§impl Mix
impl Mix
sourcepub fn new(flag: FormatFlag) -> Result<Self>
pub fn new(flag: FormatFlag) -> Result<Self>
Constructs a root controller, or Err
if the format is not supported.
sourcepub fn version() -> SdlVersion
pub fn version() -> SdlVersion
Returns the library version of SDL2_mixer.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Mix
impl Send for Mix
impl !Sync for Mix
impl Unpin for Mix
impl UnwindSafe for Mix
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