L2NEdit

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

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.

Implementations on Foreign Types§

Source§

impl<T> L2NEdit for &mut 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>

Source§

impl<T> L2NEdit for Box<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>

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,