Struct u24

Source
pub struct u24(pub u8, pub u8, pub u8);

Tuple Fields§

§0: u8§1: u8§2: u8

Trait Implementations§

Source§

impl Add for u24

Source§

type Output = u24

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign for u24

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl BitAnd for u24

Source§

type Output = u24

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for u24

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitOr for u24

Source§

type Output = u24

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for u24

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitXor for u24

Source§

type Output = u24

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for u24

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl Clone for u24

Source§

fn clone(&self) -> u24

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 Debug for u24

Source§

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

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

impl Div for u24

Source§

type Output = u24

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign for u24

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl Mul for u24

Source§

type Output = u24

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign for u24

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Rem for u24

Source§

type Output = u24

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign for u24

Source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
Source§

impl SampleFrom for u24

Source§

fn to(s: impl SampleType) -> Self

Source§

impl SampleType for u24

Source§

type Shorter = u16

Source§

type Longer = u32

Source§

type Signed = i24

Source§

type Unsigned = u24

Source§

fn new() -> Self

Source§

fn from(v: impl SampleType) -> u24

Source§

fn average(s1: u24, s2: u24) -> u24

Source§

fn average_arr(arr: &[Self]) -> Self

Source§

fn to_i8(&self) -> i8

Source§

fn to_i16(&self) -> i16

Source§

fn to_i32(&self) -> i32

Source§

fn to_i64(&self) -> i64

Source§

fn to_u8(&self) -> u8

Source§

fn to_u16(&self) -> u16

Source§

fn to_u32(&self) -> u32

Source§

fn to_u64(&self) -> u64

Source§

fn to_i24(&self) -> i24

Source§

fn to_u24(&self) -> u24

Source§

fn as_i24(&self) -> i24

Source§

fn as_u24(&self) -> u24

Source§

fn to_f32(&self) -> f32

Source§

fn to_f64(&self) -> f64

Source§

fn to_longer(&self) -> Self::Longer

Source§

fn to_shorter(&self) -> Self::Shorter

Source§

fn is_signed(&self) -> bool

Source§

fn is_unsigned(&self) -> bool

Source§

fn is_integer(&self) -> bool

Source§

fn is_float(&self) -> bool

Source§

fn to_signed(&self) -> Self::Signed

Source§

fn to_unsigned(&self) -> Self::Unsigned

Source§

fn read_le<T>(r: &mut T) -> Result<Self, Error>
where T: Read + ?Sized,

Source§

fn read_be<T>(r: &mut T) -> Result<Self, Error>
where T: Read + ?Sized,

Source§

fn write_le<T>(&self, w: &mut T) -> Result<(), Error>
where T: Write + ?Sized,

Source§

fn write_be<T>(&self, w: &mut T) -> Result<(), Error>
where T: Write + ?Sized,

Source§

impl Shl for u24

Source§

type Output = u24

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: Self) -> Self::Output

Performs the << operation. Read more
Source§

impl ShlAssign for u24

Source§

fn shl_assign(&mut self, rhs: Self)

Performs the <<= operation. Read more
Source§

impl Shr for u24

Source§

type Output = u24

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: Self) -> Self::Output

Performs the >> operation. Read more
Source§

impl ShrAssign for u24

Source§

fn shr_assign(&mut self, rhs: Self)

Performs the >>= operation. Read more
Source§

impl Sub for u24

Source§

type Output = u24

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign for u24

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Copy for u24

Auto Trait Implementations§

§

impl Freeze for u24

§

impl RefUnwindSafe for u24

§

impl Send for u24

§

impl Sync for u24

§

impl Unpin for u24

§

impl UnwindSafe for u24

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

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>,

Source§

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>,

Source§

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, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,