Trait DataSampleType

Source
pub trait DataSampleType {
    // Required method
    unsafe fn convert_into(
        seg: *mut MS3TraceSeg,
        truncate: bool,
    ) -> MSResult<()>;
}

Required Methods§

Source

unsafe fn convert_into(seg: *mut MS3TraceSeg, truncate: bool) -> MSResult<()>

Converts the trace segments’ samples

§Safety

seg must not be a null pointer.

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

Source§

unsafe fn convert_into(seg: *mut MS3TraceSeg, truncate: bool) -> MSResult<()>

Source§

impl DataSampleType for f64

Source§

unsafe fn convert_into(seg: *mut MS3TraceSeg, truncate: bool) -> MSResult<()>

Source§

impl DataSampleType for i32

Source§

unsafe fn convert_into(seg: *mut MS3TraceSeg, truncate: bool) -> MSResult<()>

Source§

impl DataSampleType for u8

Source§

unsafe fn convert_into(_seg: *mut MS3TraceSeg, _truncate: bool) -> MSResult<()>

Implementors§