Skip to main content

Sample

Trait Sample 

Source
pub trait Sample: Copy + SampleOps { }
Expand description

A sample type the reader can decode into and the writer can encode from.

Implemented for i8, i16, i32, f32, and f64. The trait is sealed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Sample for f32

Source§

impl Sample for f64

Source§

impl Sample for i8

Source§

impl Sample for i16

Source§

impl Sample for i32

Implementors§