Struct libreda_db::layout::hashmap_layout::Layout [−][src]
Data structure which holds cells and cell instances.
Examples
use libreda_db::prelude::*; let layout = Layout::new();
Trait Implementations
impl<C: Debug + CoordinateType> Debug for Layout<C>
[src]
impl<C: Default + CoordinateType> Default for Layout<C>
[src]
impl<C: CoordinateType> LayoutBase for Layout<C>
[src]
type Coord = C
Number type used for coordinates.
type NameType = RcString
Type for names of circuits, instances, pins, etc.
type LayerId = LayerId
Layer identifier type.
type CellId = CellId<C>
Cell/module identifier type.
type CellInstId = CellInstId<C>
Cell instance identifier type.
fn new() -> Self
[src]
fn cell_by_name<N: ?Sized + Eq + Hash>(&self, name: &N) -> Option<Self::CellId> where
Self::NameType: Borrow<N>,
[src]
Self::NameType: Borrow<N>,
fn each_cell(&self) -> Box<dyn Iterator<Item = Self::CellId>>
[src]
fn each_cell_instance(
&self,
cell: &Self::CellId
) -> Box<dyn Iterator<Item = Self::CellInstId>>
[src]
&self,
cell: &Self::CellId
) -> Box<dyn Iterator<Item = Self::CellInstId>>
fn each_dependent_cell(
&self,
cell: &Self::CellId
) -> Box<dyn Iterator<Item = Self::CellId>>
[src]
&self,
cell: &Self::CellId
) -> Box<dyn Iterator<Item = Self::CellId>>
fn each_cell_dependency(
&self,
cell: &Self::CellId
) -> Box<dyn Iterator<Item = Self::CellId>>
[src]
&self,
cell: &Self::CellId
) -> Box<dyn Iterator<Item = Self::CellId>>
fn parent_cell(&self, cell_instance: &Self::CellInstId) -> Self::CellId
[src]
fn template_cell(&self, cell_instance: &Self::CellInstId) -> Self::CellId
[src]
fn find_layer(&self, index: u32, datatype: u32) -> Option<Self::LayerId>
[src]
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>
fn remove_cell_instance(&mut self, id: &CellInstId<C>)
[src]
Auto Trait Implementations
impl<C> !RefUnwindSafe for Layout<C>
impl<C> !Send for Layout<C>
impl<C> !Sync for Layout<C>
impl<C> Unpin for Layout<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for Layout<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,