Function libreda_pnr::db::copy_layer

source ·
pub fn copy_layer<LS, LT>(
    target_layout: &mut LT,
    source_layout: &LS,
    source_layer: &<LS as LayoutIds>::LayerId
) -> <LT as LayoutIds>::LayerIdwhere
    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.