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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> L2NEdit for &mut T
where T: L2NEdit,

source§

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

source§

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

source§

impl<T> L2NEdit for Box<T>
where T: L2NEdit,

source§

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

source§

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

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<L: L2NEdit> L2NEdit for DBPerf<L>

source§

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