Newick

Trait Newick 

Source
pub trait Newick {
    // Required methods
    fn is_duplication(&self, n: usize) -> bool;
    fn leaf_names(&self) -> Box<dyn Iterator<Item = &String> + '_>;
    fn to_newick(&self, pretty: bool) -> String;
    fn name(&self, n: NodeID) -> Option<&String>;
    fn name_mut(&mut self, n: NodeID) -> Option<&mut String>;
    fn attrs(&self, n: NodeID) -> &Attrs;
    fn attrs_mut(&mut self, n: NodeID) -> &mut Attrs;
}

Required Methods§

Source

fn is_duplication(&self, n: usize) -> bool

Source

fn leaf_names(&self) -> Box<dyn Iterator<Item = &String> + '_>

Source

fn to_newick(&self, pretty: bool) -> String

Source

fn name(&self, n: NodeID) -> Option<&String>

Source

fn name_mut(&mut self, n: NodeID) -> Option<&mut String>

Source

fn attrs(&self, n: NodeID) -> &Attrs

Source

fn attrs_mut(&mut self, n: NodeID) -> &mut Attrs

Implementors§