pub fn replace_instances<F: Fn(CellId) -> bool>(
lib: &Library,
cell: CellId,
predicate: F,
replacement: CellId,
) -> CellBuilderExpand description
Rewrite instances of cells matching predicate to point at
replacement. The predicate is called with the original instance’s
CellId and returns true to swap. Shapes are preserved.