Function 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.