pub struct PlayNote {
pub note: u8,
pub velocity: u8,
}
Expand description
Play a note with a velocity.
Fields§
§note: u8
Note represented as u8, with note % 12 == 0
representing ‘C’.
velocity: u8
The strength of attack of the note.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlayNote
impl<'de> Deserialize<'de> for PlayNote
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlayNote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlayNote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Element for PlayNote
impl Element for PlayNote
Source§fn wrapped_element(&self) -> Option<&(dyn Element + 'static)>
fn wrapped_element(&self) -> Option<&(dyn Element + 'static)>
None.
Source§impl Serialize for PlayNote
impl Serialize for PlayNote
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PlayNote
impl Eq for PlayNote
impl StructuralPartialEq for PlayNote
Auto Trait Implementations§
impl Freeze for PlayNote
impl RefUnwindSafe for PlayNote
impl Send for PlayNote
impl Sync for PlayNote
impl Unpin for PlayNote
impl UnwindSafe for PlayNote
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