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
sourceimpl Clone for _tsk_table_sorter_t
impl Clone for _tsk_table_sorter_t
sourcefn clone(&self) -> _tsk_table_sorter_t
fn clone(&self) -> _tsk_table_sorter_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for _tsk_table_sorter_t
impl Debug for _tsk_table_sorter_t
impl Copy for _tsk_table_sorter_t
Auto Trait Implementations
impl RefUnwindSafe for _tsk_table_sorter_t
impl !Send for _tsk_table_sorter_t
impl !Sync for _tsk_table_sorter_t
impl Unpin for _tsk_table_sorter_t
impl UnwindSafe for _tsk_table_sorter_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more