#[repr(C)]pub struct MS3Tolerance {
pub time: Option<unsafe extern "C" fn(msr: *const MS3Record) -> f64>,
pub samprate: Option<unsafe extern "C" fn(msr: *const MS3Record) -> f64>,
}Expand description
@brief Callback functions that return time and sample rate tolerances
A container for function pointers that return time and sample rate tolerances that are used for merging data into ::MS3TraceList containers. The functions are provided with a ::MS3Record and must return the acceptable tolerances to merge this with other data.
The \c time(MS3Record) function must return a time tolerance in seconds.
The \c samprate(MS3Record) function must return a sampling rate tolerance in Hertz.
For any function pointer set to NULL a default tolerance will be used.
Illustrated usage: @code MS3Tolerance tolerance;
tolerance.time = my_time_tolerance_function; tolerance.samprate = my_samprate_tolerance_function;
mstl3_addmsr (mstl, msr, 0, 1, &tolerance); @endcode
\sa mstl3_addmsr()
Fields§
§time: Option<unsafe extern "C" fn(msr: *const MS3Record) -> f64>!< Pointer to function that returns time tolerance
samprate: Option<unsafe extern "C" fn(msr: *const MS3Record) -> f64>!< Pointer to function that returns sample rate tolerance
Trait Implementations§
Source§impl Clone for MS3Tolerance
impl Clone for MS3Tolerance
Source§fn clone(&self) -> MS3Tolerance
fn clone(&self) -> MS3Tolerance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more