pub struct AudioContext { /* private fields */ }
3
4
5
6
7
8
9
10
11
12
13
fn main() {
let mut ctx = AudioContext::new();
let mut sound = Sound::load(&mut ctx, include_bytes!("test_13000.wav"));
sound.play(&mut ctx, Default::default());
loop {}
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.