pub struct ColorEvent {
pub channel: u8,
pub col: MIDIColor,
pub col2: Option<MIDIColor>,
}
Fields§
§channel: u8
§col: MIDIColor
§col2: Option<MIDIColor>
Implementations§
Trait Implementations§
Source§impl Clone for ColorEvent
impl Clone for ColorEvent
Source§fn clone(&self) -> ColorEvent
fn clone(&self) -> ColorEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColorEvent
impl Debug for ColorEvent
Source§impl MIDIEvent for ColorEvent
impl MIDIEvent for ColorEvent
Source§impl PartialEq for ColorEvent
impl PartialEq for ColorEvent
Source§impl SerializeEvent for ColorEvent
impl SerializeEvent for ColorEvent
fn serialize_event<T: Write>( &self, _buf: &mut T, ) -> Result<usize, MIDIWriteError>
impl StructuralPartialEq for ColorEvent
Auto Trait Implementations§
impl Freeze for ColorEvent
impl RefUnwindSafe for ColorEvent
impl Send for ColorEvent
impl Sync for ColorEvent
impl Unpin for ColorEvent
impl UnwindSafe for ColorEvent
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