Skip to main content

Components

Trait Components 

Source
pub trait Components<NI> {
    // Required methods
    fn component(&self, node: NI) -> NI;
    fn to_vec(self) -> Vec<NI>;
}

Required Methods§

Source

fn component(&self, node: NI) -> NI

Source

fn to_vec(self) -> Vec<NI>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<NI: Idx> Components<NI> for Afforest<NI>

Source§

impl<NI: Idx> Components<NI> for DisjointSetStruct<NI>