Struct scir::merge::MergedMapping
source · pub struct MergedMapping { /* private fields */ }
Expand description
Keeps track of cell and primitive IDs after a library is merged.
Implementations§
source§impl MergedMapping
impl MergedMapping
sourcepub fn new_cell_id(&self, old_cell_id: CellId) -> CellId
pub fn new_cell_id(&self, old_cell_id: CellId) -> CellId
Get the cell ID in the merged library
corresponding to old_cell_id
in the original library.
§Panics
Panics if old_cell_id
is not a valid cell ID
in the original library.
sourcepub fn new_primitive_id(&self, old_primitive_id: PrimitiveId) -> PrimitiveId
pub fn new_primitive_id(&self, old_primitive_id: PrimitiveId) -> PrimitiveId
Get the primitive ID in the merged library
corresponding to old_primitive_id
in the original library.
§Panics
Panics if old_primitive_id
is not a valid primitive ID
in the original library.
Auto Trait Implementations§
impl RefUnwindSafe for MergedMapping
impl Send for MergedMapping
impl Sync for MergedMapping
impl Unpin for MergedMapping
impl UnwindSafe for MergedMapping
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more