Trait libreda_db::layout::traits::LayoutEdit [−][src]
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]
&mut self,
parent_cell: &Self::CellId,
template_cell: &Self::CellId,
name: Option<Self::NameType>,
transform: SimpleTransform<Self::Coord>
) -> Self::CellInstId
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.
Implementors
impl<C: CoordinateType> LayoutEdit for Layout<C>
[src]
fn find_or_create_layer(&mut self, index: u32, datatype: u32) -> LayerId
[src]
fn create_cell(&mut self, name: RcString) -> CellId<C>
[src]
fn remove_cell(&mut self, cell_id: &CellId<C>)
[src]
fn create_cell_instance(
&mut self,
parent_cell: &CellId<C>,
template_cell: &CellId<C>,
name: Option<RcString>,
transform: SimpleTransform<C>
) -> CellInstId<C>
[src]
&mut self,
parent_cell: &CellId<C>,
template_cell: &CellId<C>,
name: Option<RcString>,
transform: SimpleTransform<C>
) -> CellInstId<C>