INNER CODE UNIT · Rust
e
PistonDevelopers/piston_window · src/piston_script.rs:342
let e = unsafe { &mut *Current::<Option<Event>>::new() };
if let Some(new_e) = events.next(window) {
*e = Some(new_e);
true
} else {
*e = None;
false
}
}}
dyon_fn!{fn bind_sound__name_file(name: Arc<String>, file: Arc<String>) {
use crate::piston_script::Sounds;
let sounds = unsafe { &mut *Current::<Sounds>::new() };
sounds.insert(name, (file, None));
}}
dyon_fn!{fn bind_music__name_file(name: Arc<String>, file: Arc<String>) {
use crate::piston_script::Music;