Struct tskit::bindings::tsk_site_t[][src]

#[repr(C)]
pub struct tsk_site_t { pub id: tsk_id_t, pub position: f64, pub ancestral_state: *const c_char, pub ancestral_state_length: tsk_size_t, pub metadata: *const c_char, pub metadata_length: tsk_size_t, pub mutations: *const tsk_mutation_t, pub mutations_length: tsk_size_t, }
Expand description

@brief A single site defined by a row in the site table.

@rst See the :ref:data model <sec_data_model_definitions> section for the definition of a site and its properties. @endrst

Fields

id: tsk_id_t

@brief Non-negative ID value corresponding to table row.

position: f64

@brief Position coordinate.

ancestral_state: *const c_char

@brief Ancestral state.

ancestral_state_length: tsk_size_t

@brief Ancestral state length in bytes.

metadata: *const c_char

@brief Metadata.

metadata_length: tsk_size_t

@brief Metadata length in bytes.

mutations: *const tsk_mutation_tmutations_length: tsk_size_t

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.