layir::connectivity

Trait Connectivity

Source
pub trait Connectivity:
    Sized
    + PartialEq
    + Eq
    + Clone
    + Hash {
    // Required method
    fn connected_layers(&self) -> Vec<Self>;

    // Provided methods
    fn connected(&self, other: &Self) -> bool { ... }
    fn connected_components(
        cell: &Cell<Self>,
        lib: &Library<Self>,
    ) -> Vec<HashSet<Shape<Self>>>
       where Self: Clone { ... }
}

Required Methods§

Source

fn connected_layers(&self) -> Vec<Self>

Provided Methods§

Source

fn connected(&self, other: &Self) -> bool

Returns a vector of layers connected to a given layer.

Source

fn connected_components( cell: &Cell<Self>, lib: &Library<Self>, ) -> Vec<HashSet<Shape<Self>>>
where Self: Clone,

Returns a vector of unique hashsets of all connected groups of connected child shapes in a given cell.

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§