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

Object Safety§

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§

source§

impl RawSample for i24

§

type RawType = [u8; 3]

source§

impl RawSample for u24

§

type RawType = [u8; 3]