Struct rich_sdl2_rust::mixer::music::custom::MixCustomMusic
source · pub struct MixCustomMusic<'device> { /* private fields */ }
Expand description
A custom music made by the callback.
Implementations§
source§impl<'device> MixCustomMusic<'device>
impl<'device> MixCustomMusic<'device>
sourcepub fn new_and_play(
_device: &'device MixMusic<'device>,
callback: MusicCallback<'device>
) -> Self
pub fn new_and_play( _device: &'device MixMusic<'device>, callback: MusicCallback<'device> ) -> Self
Constructs a custom music and starts immediately.
Trait Implementations§
Auto Trait Implementations§
impl<'device> !RefUnwindSafe for MixCustomMusic<'device>
impl<'device> !Send for MixCustomMusic<'device>
impl<'device> !Sync for MixCustomMusic<'device>
impl<'device> Unpin for MixCustomMusic<'device>
impl<'device> !UnwindSafe for MixCustomMusic<'device>
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