Trait FromNewick

Source
pub trait FromNewick: Sized {
    // Required methods
    fn leaf(name: String) -> Self;
    fn internal(name: String, children: Vec<Self>) -> Self;
    fn update_length(self, length: Option<f64>) -> Self;
}

Required Methods§

Source

fn leaf(name: String) -> Self

Source

fn internal(name: String, children: Vec<Self>) -> Self

Source

fn update_length(self, length: Option<f64>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§