pub struct ModCommand {
pub note: Note,
pub instr: u8,
pub volcmd: VolumeCommand,
pub command: EffectCommand,
}
Fields§
§note: Note
§instr: u8
§volcmd: VolumeCommand
§command: EffectCommand
Implementations§
Source§impl ModCommand
impl ModCommand
Sourcepub fn new(
note: u8,
instr: u8,
volcmd: u8,
command: u8,
vol: u8,
param: u8,
) -> Result<ModCommand, String>
pub fn new( note: u8, instr: u8, volcmd: u8, command: u8, vol: u8, param: u8, ) -> Result<ModCommand, String>
Construct a ModCommand from pattern cell data.
§Parameters
note
: The raw note commandinstr
: The raw instrument indexvolcmd
: The raw volume commandcommand
: The raw effect commandvol
: The raw volume parameterparam
: The raw effect parameter
§Returns
The resulting ModCommand, or an error message if one of the parameter has an unknown or invalid value
Auto Trait Implementations§
impl Freeze for ModCommand
impl RefUnwindSafe for ModCommand
impl Send for ModCommand
impl Sync for ModCommand
impl Unpin for ModCommand
impl UnwindSafe for ModCommand
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