Trait MIDINum

Source
pub trait MIDINum:
    Num
    + PartialOrd
    + PartialEq
    + AddAssign
    + SubAssign
    + DivAssign
    + MulAssign
    + Copy
    + Sized
    + Debug
    + Display
    + Send
    + Sync
    + MIDINumFrom<i32>
    + MIDINumFrom<f32>
    + MIDINumFrom<f64>
    + MIDINumFrom<i64>
    + MIDINumFrom<u32>
    + MIDINumFrom<u64>
    + MIDINumInto<i32>
    + MIDINumInto<f32>
    + MIDINumInto<f64>
    + MIDINumInto<i64>
    + MIDINumInto<u32>
    + MIDINumInto<u64> {
    // Required methods
    fn saturating_add(self, other: Self) -> Self;
    fn saturating_sub(self, other: Self) -> Self;
}

Required Methods§

Source

fn saturating_add(self, other: Self) -> Self

Source

fn saturating_sub(self, other: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MIDINum for f32

Source§

fn saturating_add(self, other: Self) -> Self

Source§

fn saturating_sub(self, other: Self) -> Self

Source§

impl MIDINum for f64

Source§

fn saturating_add(self, other: Self) -> Self

Source§

fn saturating_sub(self, other: Self) -> Self

Source§

impl MIDINum for i32

Source§

fn saturating_add(self, other: Self) -> Self

Source§

fn saturating_sub(self, other: Self) -> Self

Source§

impl MIDINum for i64

Source§

fn saturating_add(self, other: Self) -> Self

Source§

fn saturating_sub(self, other: Self) -> Self

Source§

impl MIDINum for u32

Source§

fn saturating_add(self, other: Self) -> Self

Source§

fn saturating_sub(self, other: Self) -> Self

Source§

impl MIDINum for u64

Source§

fn saturating_add(self, other: Self) -> Self

Source§

fn saturating_sub(self, other: Self) -> Self

Implementors§