Struct libreda_pnr::place::mixed_size_placer::db::traits::LayerRef
source · pub struct LayerRef<'a, L>where
L: LayoutBase + ?Sized,{
pub(super) base: &'a L,
pub(super) id: <L as LayoutIds>::LayerId,
}
Expand description
Reference to a layer.
Fields§
§base: &'a L
§id: <L as LayoutIds>::LayerId
Implementations§
source§impl<'a, L> LayerRef<'a, L>where
L: LayoutBase,
impl<'a, L> LayerRef<'a, L>where L: LayoutBase,
sourcepub fn name(&self) -> Option<<L as HierarchyBase>::NameType>
pub fn name(&self) -> Option<<L as HierarchyBase>::NameType>
Get the name of the layer.
sourcepub fn layer_info(&self) -> LayerInfo<<L as HierarchyBase>::NameType>
pub fn layer_info(&self) -> LayerInfo<<L as HierarchyBase>::NameType>
Get a reference to the layer-info structure.