Trait libreda_db::l2n::L2NEdit

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

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

Required Methods§

source

fn set_pin_of_shape( &mut self, shape_id: &Self::ShapeId, pin: Option<Self::PinId> ) -> Option<Self::PinId>

Create the link between a circuit pin and its shapes in the layout. Return the current pin.

source

fn set_net_of_shape( &mut self, shape_id: &Self::ShapeId, net: Option<Self::NetId> ) -> Option<Self::NetId>

Set the net of a shape. Return the current net.

Implementors§

source§

impl L2NEdit for Chip<Coord>

source§

impl<'a, T, U> L2NEdit for Undo<'a, T, U>where T: L2NEdit + 'static, U: From<L2NUndoOp<T>> + From<LayoutUndoOp<T>> + From<NetlistUndoOp<T>> + From<HierarchyUndoOp<T>>,

source§

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