Trait StreamSample

Source
pub unsafe trait StreamSample {
    const STREAM_FORMAT: Format;
}
Expand description

Trait for sample formats used by a TxStream or RxStream

§Safety

Implementing this trait requires that the type have the same size, alignment, and compatible memory representation with the SoapySDR type selected by STREAM_FORMAT

Required Associated Constants§

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

Source§

const STREAM_FORMAT: Format = Format::F32

Source§

impl StreamSample for f64

Source§

const STREAM_FORMAT: Format = Format::F64

Source§

impl StreamSample for i8

Source§

const STREAM_FORMAT: Format = Format::S8

Source§

impl StreamSample for i16

Source§

const STREAM_FORMAT: Format = Format::S16

Source§

impl StreamSample for i32

Source§

const STREAM_FORMAT: Format = Format::S32

Source§

impl StreamSample for u8

Source§

const STREAM_FORMAT: Format = Format::U8

Source§

impl StreamSample for u16

Source§

const STREAM_FORMAT: Format = Format::U16

Source§

impl StreamSample for u32

Source§

const STREAM_FORMAT: Format = Format::U32

Source§

impl StreamSample for Complex<f32>

Source§

const STREAM_FORMAT: Format = Format::CF32

Source§

impl StreamSample for Complex<f64>

Source§

const STREAM_FORMAT: Format = Format::CF64

Source§

impl StreamSample for Complex<i8>

Source§

const STREAM_FORMAT: Format = Format::CS8

Source§

impl StreamSample for Complex<i16>

Source§

const STREAM_FORMAT: Format = Format::CS16

Source§

impl StreamSample for Complex<i32>

Source§

const STREAM_FORMAT: Format = Format::CS32

Source§

impl StreamSample for Complex<u8>

Source§

const STREAM_FORMAT: Format = Format::CU8

Source§

impl StreamSample for Complex<u16>

Source§

const STREAM_FORMAT: Format = Format::CU16

Source§

impl StreamSample for Complex<u32>

Source§

const STREAM_FORMAT: Format = Format::CU32

Implementors§