INNER CODE UNIT · Rust

Some

PistonDevelopers/piston_window · src/piston_script.rs:343

        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;
        let music = unsafe { &mut *Current::<Music>::new() };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…