pub struct Sound {
pub notes: Vec<Note>,
pub tones: Vec<ToneIndex>,
pub volumes: Vec<Volume>,
pub effects: Vec<Effect>,
pub speed: Speed,
}
Fields§
§notes: Vec<Note>
§tones: Vec<ToneIndex>
§volumes: Vec<Volume>
§effects: Vec<Effect>
§speed: Speed
Implementations§
Source§impl 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)
pub fn save(&self, filename: &str, count: u32, ffmpeg: Option<bool>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sound
impl RefUnwindSafe for Sound
impl Send for Sound
impl Sync for Sound
impl Unpin for Sound
impl UnwindSafe for Sound
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more