Struct light_phylogeny::Noeud[][src]

pub struct Noeud<T> where
    T: PartialEq
{
Show fields pub idx: usize, pub name: String, pub support: String, pub parent: Option<usize>, pub children: Vec<usize>, pub x: f32, pub xmod: f32, pub y: f32, pub ymod: f32, pub l: f32, pub e: Event, pub location: String, pub width: f32, pub height: f32, pub nbg: usize, pub nodes: Vec<(usize, usize)>, pub is_a_transfert: bool, pub go_left: usize, pub go_right: usize, pub fixed: bool, pub transfers: Vec<usize>, // some fields omitted
}

Structure Noeud.

Fields

idx: usize

index in the Arena structure

name: String

name of the node

support: String

support of the node

parent: Option<usize>

parent if the node

children: Vec<usize>

children of the node

x: f32

x coordinate

xmod: f32

x shift

y: f32

y coordinate

ymod: f32

y shift

l: f32

real branch length

e: Event

event (duplication, speciation, loss, transfer …)

location: String

location of the gene tree node in the species tree (recPhyloXML)

width: f32

pipe width (recPhyloXML)

height: f32

pipe height (recPhyloXML)

nbg: usize

number of gene nodes associated to the species node (recPhyloXML)

nodes: Vec<(usize, usize)>

number of gene nodes associated to the species node (recPhyloXML)

is_a_transfert: bool

the node come from a transfer (it is a transferBack and its parent is a BranchingOut)

go_left: usize

optimisation: number of left-side orientation minimising transfer crossings (recPhyloXML)

go_right: usize

optimisation: number of right-side orientation minimising transfer crossings (recPhyloXML)

fixed: bool

optimisation: node is fixed, left/side orientation of children can not be modified (recPhyloXML)

transfers: Vec<usize>

optimisation: indexes of transfers associated to the node (recPhyloXML)

Implementations

impl<T> Noeud<T> where
    T: PartialEq
[src]

pub fn new(idx: usize, val: T) -> Self[src]

pub fn set_event(&mut self, e: Event)[src]

Set node event

pub fn set_x_noref(&mut self, x: f32)[src]

Set node x

pub fn set_xmod_noref(&mut self, xmod: f32)[src]

Set node xmod

pub fn set_ymod_noref(&mut self, ymod: f32)[src]

Set node ymod

pub fn set_y_noref(&mut self, y: f32)[src]

Set node y

Trait Implementations

impl<T: Debug> Debug for Noeud<T> where
    T: PartialEq
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> RefUnwindSafe for Noeud<T> where
    T: RefUnwindSafe

impl<T> Send for Noeud<T> where
    T: Send

impl<T> Sync for Noeud<T> where
    T: Sync

impl<T> Unpin for Noeud<T> where
    T: Unpin

impl<T> UnwindSafe for Noeud<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V