#![allow(missing_docs)]
pub mod util;
use super::traits::*;
#[portrait::make]
pub trait L2NBaseMT: L2NBase + LayoutBaseMT + NetlistBaseMT {}
impl<L> L2NBaseMT for L where L: L2NBase + LayoutBaseMT + NetlistBaseMT {}
pub trait L2NIds: LayoutIds + NetlistIds {}
impl<LN> L2NIds for LN where LN: LayoutIds + NetlistIds {}
#[portrait::make]
pub trait L2NBase: LayoutBase + NetlistBase {
fn shapes_of_net(&self, net_id: &Self::NetId) -> Box<dyn Iterator<Item = Self::ShapeId> + '_>;
fn shapes_of_pin(&self, pin_id: &Self::PinId) -> Box<dyn Iterator<Item = Self::ShapeId> + '_>;
fn get_net_of_shape(&self, shape_id: &Self::ShapeId) -> Option<Self::NetId>;
fn get_pin_of_shape(&self, shape_id: &Self::ShapeId) -> Option<Self::PinId>;
}
#[portrait::make]
pub trait L2NEdit: L2NBase + LayoutEdit + NetlistEdit {
fn set_pin_of_shape(
&mut self,
shape_id: &Self::ShapeId,
pin: Option<Self::PinId>,
) -> Option<Self::PinId>;
fn set_net_of_shape(
&mut self,
shape_id: &Self::ShapeId,
net: Option<Self::NetId>,
) -> Option<Self::NetId>;
}