Struct symphonia_core::sample::u24
source · pub struct u24(pub u32);
Expand description
An unsigned 24-bit integer sample with an internal unsigned 32-bit integer representation.
There are no guarantees the sample is within the valid range 24-bit range. Use the
Sample::clamped
function to clamp the sample to the valid range.
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
source§impl FromSample<f32> for u24
impl FromSample<f32> for u24
fn from_sample(s: f32) -> Self
source§impl FromSample<f64> for u24
impl FromSample<f64> for u24
fn from_sample(s: f64) -> Self
source§impl FromSample<i16> for u24
impl FromSample<i16> for u24
fn from_sample(s: i16) -> Self
source§impl FromSample<i24> for u24
impl FromSample<i24> for u24
fn from_sample(s: i24) -> Self
source§impl FromSample<i32> for u24
impl FromSample<i32> for u24
fn from_sample(s: i32) -> Self
source§impl FromSample<i8> for u24
impl FromSample<i8> for u24
fn from_sample(s: i8) -> Self
source§impl FromSample<u16> for u24
impl FromSample<u16> for u24
fn from_sample(s: u16) -> Self
source§impl FromSample<u24> for f32
impl FromSample<u24> for f32
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for f64
impl FromSample<u24> for f64
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for i16
impl FromSample<u24> for i16
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for i24
impl FromSample<u24> for i24
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for i32
impl FromSample<u24> for i32
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for i8
impl FromSample<u24> for i8
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for u16
impl FromSample<u24> for u16
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for u24
impl FromSample<u24> for u24
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for u32
impl FromSample<u24> for u32
fn from_sample(s: u24) -> Self
source§impl FromSample<u24> for u8
impl FromSample<u24> for u8
fn from_sample(s: u24) -> Self
source§impl FromSample<u32> for u24
impl FromSample<u32> for u24
fn from_sample(s: u32) -> Self
source§impl FromSample<u8> for u24
impl FromSample<u8> for u24
fn from_sample(s: u8) -> Self
source§impl MaybeDither<f32> for u24
impl MaybeDither<f32> for u24
source§impl MaybeDither<f64> for u24
impl MaybeDither<f64> for u24
source§impl MaybeDither<i16> for u24
impl MaybeDither<i16> for u24
source§impl MaybeDither<i24> for u24
impl MaybeDither<i24> for u24
source§impl MaybeDither<i32> for u24
impl MaybeDither<i32> for u24
source§impl MaybeDither<i8> for u24
impl MaybeDither<i8> for u24
source§impl MaybeDither<u16> for u24
impl MaybeDither<u16> for u24
source§impl MaybeDither<u24> for f32
impl MaybeDither<u24> for f32
source§impl MaybeDither<u24> for f64
impl MaybeDither<u24> for f64
source§impl MaybeDither<u24> for i16
impl MaybeDither<u24> for i16
source§impl MaybeDither<u24> for i24
impl MaybeDither<u24> for i24
source§impl MaybeDither<u24> for i32
impl MaybeDither<u24> for i32
source§impl MaybeDither<u24> for i8
impl MaybeDither<u24> for i8
source§impl MaybeDither<u24> for u16
impl MaybeDither<u24> for u16
source§impl MaybeDither<u24> for u24
impl MaybeDither<u24> for u24
source§impl MaybeDither<u24> for u32
impl MaybeDither<u24> for u32
source§impl MaybeDither<u24> for u8
impl MaybeDither<u24> for u8
source§impl MaybeDither<u32> for u24
impl MaybeDither<u32> for u24
source§impl MaybeDither<u8> for u24
impl MaybeDither<u8> for u24
source§impl Ord for u24
impl Ord for u24
source§impl PartialOrd for u24
impl PartialOrd for u24
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sample for u24
impl Sample for u24
source§const FORMAT: SampleFormat = SampleFormat::U24
const FORMAT: SampleFormat = SampleFormat::U24
A unique enum value representing the sample format. This constant may be used to dynamically
choose how to process the sample at runtime.
source§const EFF_BITS: u32 = 24u32
const EFF_BITS: u32 = 24u32
The effective number of bits of the valid (clamped) sample range. Quantifies the dynamic
range of the sample format in bits.
impl Copy for u24
impl Eq for u24
impl StructuralPartialEq for u24
Auto Trait Implementations§
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> 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