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).
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.