Enum midi2::channel_voice2::ChannelVoice2

source ·
pub enum ChannelVoice2<B: Ump> {
Show 15 variants AssignableController(AssignableController<B>), AssignablePerNoteController(AssignablePerNoteController<B>), ChannelPitchBend(ChannelPitchBend<B>), ChannelPressure(ChannelPressure<B>), ControlChange(ControlChange<B>), KeyPressure(KeyPressure<B>), NoteOff(NoteOff<B>), NoteOn(NoteOn<B>), PerNoteManagement(PerNoteManagement<B>), PerNotePitchBend(PerNotePitchBend<B>), ProgramChange(ProgramChange<B>), RegisteredController(RegisteredController<B>), RegisteredPerNoteController(RegisteredPerNoteController<B>), RelativeAssignableController(RelativeAssignableController<B>), RelativeRegisteredController(RelativeRegisteredController<B>),
}

Variants§

§

AssignableController(AssignableController<B>)

§

AssignablePerNoteController(AssignablePerNoteController<B>)

§

ChannelPitchBend(ChannelPitchBend<B>)

§

ChannelPressure(ChannelPressure<B>)

§

ControlChange(ControlChange<B>)

§

KeyPressure(KeyPressure<B>)

§

NoteOff(NoteOff<B>)

§

NoteOn(NoteOn<B>)

§

PerNoteManagement(PerNoteManagement<B>)

§

PerNotePitchBend(PerNotePitchBend<B>)

§

ProgramChange(ProgramChange<B>)

§

RegisteredController(RegisteredController<B>)

§

RegisteredPerNoteController(RegisteredPerNoteController<B>)

§

RelativeAssignableController(RelativeAssignableController<B>)

§

RelativeRegisteredController(RelativeRegisteredController<B>)

Trait Implementations§

source§

impl<B: Ump> Channeled<B> for ChannelVoice2<B>

source§

fn channel(&self) -> u4

source§

fn set_channel(&mut self, channel: u4)
where B: BufferMut,

source§

impl<B: Clone + Ump> Clone for ChannelVoice2<B>

source§

fn clone(&self) -> ChannelVoice2<B>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<B: Ump> Data<B> for ChannelVoice2<B>

source§

fn data(&self) -> &[B::Unit]

source§

impl<B: Debug + Ump> Debug for ChannelVoice2<B>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<B: Ump> From<AssignableController<B>> for ChannelVoice2<B>

source§

fn from(original: AssignableController<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<AssignablePerNoteController<B>> for ChannelVoice2<B>

source§

fn from(original: AssignablePerNoteController<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<ChannelPitchBend<B>> for ChannelVoice2<B>

source§

fn from(original: ChannelPitchBend<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<ChannelPressure<B>> for ChannelVoice2<B>

source§

fn from(original: ChannelPressure<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<ChannelVoice2<B>> for UmpMessage<B>

source§

fn from(original: ChannelVoice2<B>) -> UmpMessage<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<ControlChange<B>> for ChannelVoice2<B>

source§

fn from(original: ControlChange<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<KeyPressure<B>> for ChannelVoice2<B>

source§

fn from(original: KeyPressure<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<NoteOff<B>> for ChannelVoice2<B>

source§

fn from(original: NoteOff<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<NoteOn<B>> for ChannelVoice2<B>

source§

fn from(original: NoteOn<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<PerNoteManagement<B>> for ChannelVoice2<B>

source§

fn from(original: PerNoteManagement<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<PerNotePitchBend<B>> for ChannelVoice2<B>

source§

fn from(original: PerNotePitchBend<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<ProgramChange<B>> for ChannelVoice2<B>

source§

fn from(original: ProgramChange<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<RegisteredController<B>> for ChannelVoice2<B>

source§

fn from(original: RegisteredController<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<RegisteredPerNoteController<B>> for ChannelVoice2<B>

source§

fn from(original: RegisteredPerNoteController<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<RelativeAssignableController<B>> for ChannelVoice2<B>

source§

fn from(original: RelativeAssignableController<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> From<RelativeRegisteredController<B>> for ChannelVoice2<B>

source§

fn from(original: RelativeRegisteredController<B>) -> ChannelVoice2<B>

Converts to this type from the input type.
source§

impl<B: Ump> Grouped<B> for ChannelVoice2<B>

source§

fn group(&self) -> u4

source§

fn set_group(&mut self, group: u4)
where B: BufferMut,

source§

impl<B: Ump> Packets for ChannelVoice2<B>

source§

impl<B: PartialEq + Ump> PartialEq for ChannelVoice2<B>

source§

fn eq(&self, other: &ChannelVoice2<B>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<A: Ump, B: Ump + BufferMut + BufferDefault + BufferResize> RebufferFrom<ChannelVoice2<A>> for ChannelVoice2<B>

source§

fn rebuffer_from(other: ChannelVoice2<A>) -> Self

source§

impl<const SIZE: usize, B: Ump> RebufferFrom<ChannelVoice2<B>> for ChannelVoice2<[<B as Buffer>::Unit; SIZE]>

source§

fn rebuffer_from(other: ChannelVoice2<B>) -> Self

source§

impl<'a> TryFrom<&'a [u32]> for ChannelVoice2<&'a [u32]>

§

type Error = InvalidData

The type returned in the event of a conversion error.
source§

fn try_from(buffer: &'a [u32]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<A: Ump, B: Ump + BufferMut + BufferDefault + BufferTryResize> TryRebufferFrom<ChannelVoice2<A>> for ChannelVoice2<B>

source§

impl<B: Eq + Ump> Eq for ChannelVoice2<B>

source§

impl<B: Ump> StructuralPartialEq for ChannelVoice2<B>

Auto Trait Implementations§

§

impl<B> Freeze for ChannelVoice2<B>
where B: Freeze,

§

impl<B> RefUnwindSafe for ChannelVoice2<B>
where B: RefUnwindSafe,

§

impl<B> Send for ChannelVoice2<B>
where B: Send,

§

impl<B> Sync for ChannelVoice2<B>
where B: Sync,

§

impl<B> Unpin for ChannelVoice2<B>
where B: Unpin,

§

impl<B> UnwindSafe for ChannelVoice2<B>
where B: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> IntoBytes<U> for T
where U: FromUmp<T>,

source§

fn into_bytes(self) -> U

source§

impl<T, U> IntoUmp<U> for T
where U: FromBytes<T>,

source§

fn into_ump(self) -> U

source§

impl<T, V> RebufferInto<V> for T
where V: RebufferFrom<T>,

source§

fn rebuffer_into(self) -> V

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, U> TryIntoBytes<U> for T
where U: TryFromUmp<T>,

source§

impl<T, U> TryIntoUmp<U> for T
where U: TryFromBytes<T>,

source§

impl<T, V> TryRebufferInto<V> for T
where V: TryRebufferFrom<T>,