symphonia_core::audio

Trait RawSample

Source
pub trait RawSample: Sample {
    type RawType: Copy + Default + Sealed;

    // Required method
    fn into_raw_sample(self) -> Self::RawType;
}
Expand description

RawSample provides a typed interface for converting a Sample from it’s in-memory data type to actual binary type.

Required Associated Types§

Source

type RawType: Copy + Default + Sealed

The RawType is a primitive data type, or fixed-size byte array, that is the final binary representation of the sample when written out to a byte-buffer.

Required Methods§

Source

fn into_raw_sample(self) -> Self::RawType

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 RawSample for f32

Source§

impl RawSample for f64

Source§

impl RawSample for i8

Source§

impl RawSample for i16

Source§

impl RawSample for i32

Source§

impl RawSample for u8

Source§

impl RawSample for u16

Source§

impl RawSample for u32

Implementors§