Struct tskit::bindings::_tsk_table_sorter_t
source · #[repr(C)]pub struct _tsk_table_sorter_t {
pub tables: *mut tsk_table_collection_t,
pub sort_edges: Option<unsafe extern "C" fn(self_: *mut _tsk_table_sorter_t, start: tsk_size_t) -> c_int>,
pub sort_mutations: Option<unsafe extern "C" fn(self_: *mut _tsk_table_sorter_t) -> c_int>,
pub sort_individuals: Option<unsafe extern "C" fn(self_: *mut _tsk_table_sorter_t) -> c_int>,
pub user_data: *mut c_void,
pub site_id_map: *mut tsk_id_t,
}
Expand description
@brief Low-level table sorting method.
Fields§
§tables: *mut tsk_table_collection_t
@brief The input tables that are being sorted.
sort_edges: Option<unsafe extern "C" fn(self_: *mut _tsk_table_sorter_t, start: tsk_size_t) -> c_int>
@brief The edge sorting function. If set to NULL, edges are not sorted.
sort_mutations: Option<unsafe extern "C" fn(self_: *mut _tsk_table_sorter_t) -> c_int>
@brief The mutation sorting function.
sort_individuals: Option<unsafe extern "C" fn(self_: *mut _tsk_table_sorter_t) -> c_int>
@brief The individual sorting function.
user_data: *mut c_void
@brief An opaque pointer for use by client code
site_id_map: *mut tsk_id_t
@brief Mapping from input site IDs to output site IDs
Trait Implementations§
source§impl Clone for _tsk_table_sorter_t
impl Clone for _tsk_table_sorter_t
source§fn clone(&self) -> _tsk_table_sorter_t
fn clone(&self) -> _tsk_table_sorter_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more