Struct tskit::bindings::tsk_population_t
source · [−]#[repr(C)]pub struct tsk_population_t {
pub id: tsk_id_t,
pub metadata: *const c_char,
pub metadata_length: tsk_size_t,
}
Expand description
@brief A single population defined by a row in the population table.
@rst
See the :ref:data model <sec_data_model_definitions>
section for the definition of
a population and its properties.
@endrst
Fields
id: tsk_id_t
@brief Non-negative ID value corresponding to table row.
metadata: *const c_char
@brief Metadata.
metadata_length: tsk_size_t
@brief Metadata length in bytes.
Trait Implementations
sourceimpl Clone for tsk_population_t
impl Clone for tsk_population_t
sourcefn clone(&self) -> tsk_population_t
fn clone(&self) -> tsk_population_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_population_t
impl Debug for tsk_population_t
impl Copy for tsk_population_t
Auto Trait Implementations
impl RefUnwindSafe for tsk_population_t
impl !Send for tsk_population_t
impl !Sync for tsk_population_t
impl Unpin for tsk_population_t
impl UnwindSafe for tsk_population_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