Struct tskit::bindings::tsk_site_t
source · [−]#[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_t
@brief An array of this site’s mutations
mutations_length: tsk_size_t
@brief The number of mutations at this site
Trait Implementations
sourceimpl Clone for tsk_site_t
impl Clone for tsk_site_t
sourcefn clone(&self) -> tsk_site_t
fn clone(&self) -> tsk_site_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_site_t
impl Debug for tsk_site_t
impl Copy for tsk_site_t
Auto Trait Implementations
impl RefUnwindSafe for tsk_site_t
impl !Send for tsk_site_t
impl !Sync for tsk_site_t
impl Unpin for tsk_site_t
impl UnwindSafe for tsk_site_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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more