pub fn find_sound_buffer<P: AsRef<Path>>(&self, path: P) -> Option<SharedSoundBuffer> {
        for sound_buffer in self.sound_buffers.iter() {
            if sound_buffer.state().path() == path.as_ref() {
                return Some(sound_buffer.value.clone());
            }
        }
        None
    }
/// Tries to find sound buffer by its path. Returns None if no such sound buffer was found.
Tries to find sound buffer by its path. Returns None if no such sound buffer was found.
Tries to find sound buffer by its path . Returns None if no such sound buffer was found .
pub fn find_sound_buffer<P: AsRef<Path>>(&self, path: P) -> Option<SharedSoundBuffer> {
        for sound_buffer in self.sound_buffers.iter() {
            if sound_buffer.state().path() == path.as_ref() {
                return Some(sound_buffer.value.clone());
            }
        }
        None
    }
pub fn find_sound_buffer < P : AsRef < Path > > ( & self , path : P ) -> Option < SharedSoundBuffer > { for sound_buffer in self . sound_buffers . iter ( ) { if sound_buffer . state ( ) . path ( ) == path . as_ref ( ) { return Some ( sound_buffer . value . clone ( ) ) ; } } None }
Tries to find sound buffer by its path.
Tries to find sound buffer by its path .
&self
path
P