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§

Implementations on Foreign Types§

source§

impl StreamSample for Complex<u8>

source§

const STREAM_FORMAT: Format = Format::CU8

source§

impl StreamSample for f32

source§

const STREAM_FORMAT: Format = Format::F32

source§

impl StreamSample for Complex<i8>

source§

const STREAM_FORMAT: Format = Format::CS8

source§

impl StreamSample for u16

source§

const STREAM_FORMAT: Format = Format::U16

source§

impl StreamSample for i8

source§

const STREAM_FORMAT: Format = Format::S8

source§

impl StreamSample for Complex<f32>

source§

const STREAM_FORMAT: Format = Format::CF32

source§

impl StreamSample for Complex<i32>

source§

const STREAM_FORMAT: Format = Format::CS32

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 Complex<f64>

source§

const STREAM_FORMAT: Format = Format::CF64

source§

impl StreamSample for f64

source§

const STREAM_FORMAT: Format = Format::F64

source§

impl StreamSample for Complex<u32>

source§

const STREAM_FORMAT: Format = Format::CU32

source§

impl StreamSample for Complex<u16>

source§

const STREAM_FORMAT: Format = Format::CU16

source§

impl StreamSample for Complex<i16>

source§

const STREAM_FORMAT: Format = Format::CS16

source§

impl StreamSample for u32

source§

const STREAM_FORMAT: Format = Format::U32

source§

impl StreamSample for u8

source§

const STREAM_FORMAT: Format = Format::U8

Implementors§