Struct tskit::bindings::tsk_edge_t
source · #[repr(C)]pub struct tsk_edge_t {
pub id: tsk_id_t,
pub parent: tsk_id_t,
pub child: tsk_id_t,
pub left: f64,
pub right: f64,
pub metadata: *const c_char,
pub metadata_length: tsk_size_t,
}
Expand description
@brief A single edge defined by a row in the edge table.
@rst
See the :ref:data model <sec_data_model_definitions>
section for the definition of
an edge and its properties.
@endrst
Fields
id: tsk_id_t
@brief Non-negative ID value corresponding to table row.
parent: tsk_id_t
@brief Parent node ID.
child: tsk_id_t
@brief Child node ID.
left: f64
@brief Left coordinate.
right: f64
@brief Right coordinate.
metadata: *const c_char
@brief Metadata.
metadata_length: tsk_size_t
@brief Size of the metadata in bytes.
Trait Implementations
sourceimpl Clone for tsk_edge_t
impl Clone for tsk_edge_t
sourcefn clone(&self) -> tsk_edge_t
fn clone(&self) -> tsk_edge_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 moresourceimpl Debug for tsk_edge_t
impl Debug for tsk_edge_t
impl Copy for tsk_edge_t
Auto Trait Implementations
impl RefUnwindSafe for tsk_edge_t
impl !Send for tsk_edge_t
impl !Sync for tsk_edge_t
impl Unpin for tsk_edge_t
impl UnwindSafe for tsk_edge_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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