Trait libreda_db::layout::traits::LayoutEdit[][src]

pub trait LayoutEdit where
    Self: LayoutBase
{ fn find_or_create_layer(
        &mut self,
        index: UInt,
        datatype: UInt
    ) -> Self::LayerId;
fn create_cell(&mut self, name: Self::NameType) -> Self::CellId;
fn remove_cell(&mut self, cell_id: &Self::CellId);
fn create_cell_instance(
        &mut self,
        parent_cell: &Self::CellId,
        template_cell: &Self::CellId,
        name: Option<Self::NameType>,
        transform: SimpleTransform<Self::Coord>
    ) -> Self::CellInstId;
fn remove_cell_instance(&mut self, id: &Self::CellInstId); }

Trait for layouts that support editing.

Required methods

fn find_or_create_layer(&mut self, index: UInt, datatype: UInt) -> Self::LayerId[src]

Create a layer or return an existing one.

fn create_cell(&mut self, name: Self::NameType) -> Self::CellId[src]

Create a new and empty cell.

fn remove_cell(&mut self, cell_id: &Self::CellId)[src]

Delete the given cell if it exists.

fn create_cell_instance(
    &mut self,
    parent_cell: &Self::CellId,
    template_cell: &Self::CellId,
    name: Option<Self::NameType>,
    transform: SimpleTransform<Self::Coord>
) -> Self::CellInstId
[src]

Create a new instance of template_cell in parent_cell.

fn remove_cell_instance(&mut self, id: &Self::CellInstId)[src]

Remove cell instance if it exists.

Loading content...

Implementors

impl<C: CoordinateType> LayoutEdit for Layout<C>[src]

Loading content...