Trait libreda_db::l2n::L2NBase

source ·
pub trait L2NBase: LayoutBase + NetlistBase {
    // Required methods
    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>;
}
Expand description

Fused layout and netlist view. This trait makes the link between netlist elements and layout elements.

Required Methods§

source

fn shapes_of_net( &self, net_id: &Self::NetId ) -> Box<dyn Iterator<Item = Self::ShapeId> + '_>

Iterate over all shapes that are marked to belong to the specified net.

source

fn shapes_of_pin( &self, pin_id: &Self::PinId ) -> Box<dyn Iterator<Item = Self::ShapeId> + '_>

Iterate over all shapes that are part of the pin.

source

fn get_net_of_shape(&self, shape_id: &Self::ShapeId) -> Option<Self::NetId>

Get the net of a shape.

source

fn get_pin_of_shape(&self, shape_id: &Self::ShapeId) -> Option<Self::PinId>

Get the pin that belongs to the shape (if any).

Implementors§

source§

impl L2NBase for Chip<Coord>

source§

impl<'b, LN> L2NBase for RegionSearchAdapter<'b, LN>where LN: L2NBase + 'static, LN::Coord: PrimInt + Signed + Debug,

source§

impl<'b, N, U> L2NBase for Undo<'b, N, U>where N: L2NBase,