Struct tic80::PatternRow
source · pub struct PatternRow { /* private fields */ }
Implementations§
source§impl PatternRow
impl PatternRow
pub fn new( note: MusicNote, param1: u4, param2: u4, command: MusicCommand, sfx: u6, octave: u3 ) -> Self
pub fn note(&self) -> MusicNote
pub fn set_note(&mut self, value: MusicNote)
pub fn param1(&self) -> u4
pub fn set_param1(&mut self, value: u4)
pub fn param2(&self) -> u4
pub fn set_param2(&mut self, value: u4)
pub fn command(&self) -> MusicCommand
pub fn set_command(&mut self, value: MusicCommand)
pub fn sfx(&self) -> u6
pub fn set_sfx(&mut self, value: u6)
pub fn octave(&self) -> u3
pub fn set_octave(&mut self, value: u3)
Trait Implementations§
source§impl Bitsized for PatternRow
impl Bitsized for PatternRow
source§impl From<PatternRow> for u24
impl From<PatternRow> for u24
source§fn from(value: PatternRow) -> Self
fn from(value: PatternRow) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for PatternRow
impl Send for PatternRow
impl Sync for PatternRow
impl Unpin for PatternRow
impl UnwindSafe for PatternRow
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