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§
sourcefn shapes_of_net(
&self,
net_id: &Self::NetId,
) -> Box<dyn Iterator<Item = Self::ShapeId> + '_>
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.
sourcefn shapes_of_pin(
&self,
pin_id: &Self::PinId,
) -> Box<dyn Iterator<Item = Self::ShapeId> + '_>
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.
sourcefn get_net_of_shape(&self, shape_id: &Self::ShapeId) -> Option<Self::NetId>
fn get_net_of_shape(&self, shape_id: &Self::ShapeId) -> Option<Self::NetId>
Get the net of a shape.
sourcefn get_pin_of_shape(&self, shape_id: &Self::ShapeId) -> Option<Self::PinId>
fn get_pin_of_shape(&self, shape_id: &Self::ShapeId) -> Option<Self::PinId>
Get the pin that belongs to the shape (if any).
Object Safety§
This trait is not object safe.