Struct tskit::bindings::tsk_individual_t
source · #[repr(C)]pub struct tsk_individual_t {
pub id: tsk_id_t,
pub flags: tsk_flags_t,
pub location: *const f64,
pub location_length: tsk_size_t,
pub parents: *mut tsk_id_t,
pub parents_length: tsk_size_t,
pub metadata: *const c_char,
pub metadata_length: tsk_size_t,
pub nodes: *const tsk_id_t,
pub nodes_length: tsk_size_t,
}
Expand description
@brief A single individual defined by a row in the individual table.
@rst
See the :ref:data model <sec_data_model_definitions>
section for the definition of
an individual and its properties.
@endrst
Fields§
§id: tsk_id_t
@brief Non-negative ID value corresponding to table row.
flags: tsk_flags_t
@brief Bitwise flags.
location: *const f64
@brief Spatial location. The number of dimensions is defined by
location_length
.
location_length: tsk_size_t
@brief Number of spatial dimensions.
parents: *mut tsk_id_t
@brief IDs of the parents. The number of parents given by parents_length
parents_length: tsk_size_t
@brief Number of parents.
metadata: *const c_char
@brief Metadata.
metadata_length: tsk_size_t
@brief Size of the metadata in bytes.
nodes: *const tsk_id_t
@brief An array of the nodes associated with this individual
nodes_length: tsk_size_t
@brief The number of nodes associated with this individual
Trait Implementations§
source§impl Clone for tsk_individual_t
impl Clone for tsk_individual_t
source§fn clone(&self) -> tsk_individual_t
fn clone(&self) -> tsk_individual_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