pub struct Sound {
pub notes: Vec<Note>,
pub tones: Vec<Tone>,
pub volumes: Vec<Volume>,
pub effects: Vec<Effect>,
pub speed: Speed,
}
Fields
notes: Vec<Note>
tones: Vec<Tone>
volumes: Vec<Volume>
effects: Vec<Effect>
speed: Speed
Implementations
sourceimpl Sound
impl Sound
pub fn new() -> SharedSound
pub fn set(
&mut self,
note_str: &str,
tone_str: &str,
volume_str: &str,
effect_str: &str,
speed: Speed
)
pub fn set_notes(&mut self, note_str: &str)
pub fn set_tones(&mut self, tone_str: &str)
pub fn set_volumes(&mut self, volume_str: &str)
pub fn set_effects(&mut self, effect_str: &str)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sound
impl Send for Sound
impl Sync for Sound
impl Unpin for Sound
impl UnwindSafe for Sound
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more