Function libreda_db::layout::util::copy_layer

source ·
pub fn copy_layer<LS, LT>(
    target_layout: &mut LT,
    source_layout: &LS,
    source_layer: &LS::LayerId,
) -> LT::LayerId
where LS: LayoutBase, LT: LayoutEdit,
Expand description

Copy a layer (without its content) from a source layout into a destination layout.

§Panics

Panics if the layer number or layer name already exists.