Trait mseed::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DataSampleType for c_double

source§

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

source§

impl DataSampleType for c_float

source§

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

source§

impl DataSampleType for c_int

source§

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

source§

impl DataSampleType for c_uchar

source§

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

Implementors§