Struct libreda_db::technology::layerstack::RoutingLayer
source · pub struct RoutingLayer<LayerId> {
pub id: LayerId,
pub layer_type: RoutingLayerType,
}Expand description
Annotate a layer ID as ‘via’ or ‘routing’ layer.
Fields§
§id: LayerIdID of the layer. This identifies the layer in the data-base structures.
layer_type: RoutingLayerTypeType of the routing layer (via or metal).
Implementations§
source§impl<LayerId> RoutingLayer<LayerId>
impl<LayerId> RoutingLayer<LayerId>
sourcepub fn new(id: LayerId, layer_type: RoutingLayerType) -> Self
pub fn new(id: LayerId, layer_type: RoutingLayerType) -> Self
Associate a layer ID with a layer type.
sourcepub fn layer_type(&self) -> RoutingLayerType
pub fn layer_type(&self) -> RoutingLayerType
Type of the layer.
sourcepub fn is_via_layer(&self) -> bool
pub fn is_via_layer(&self) -> bool
Check if layer is a via/cut layer.
sourcepub fn is_metal_layer(&self) -> bool
pub fn is_metal_layer(&self) -> bool
Check if layer is a metal layer.
Trait Implementations§
source§impl<LayerId: Clone> Clone for RoutingLayer<LayerId>
impl<LayerId: Clone> Clone for RoutingLayer<LayerId>
source§fn clone(&self) -> RoutingLayer<LayerId>
fn clone(&self) -> RoutingLayer<LayerId>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<LayerId: Debug> Debug for RoutingLayer<LayerId>
impl<LayerId: Debug> Debug for RoutingLayer<LayerId>
source§impl<LayerId: Hash> Hash for RoutingLayer<LayerId>
impl<LayerId: Hash> Hash for RoutingLayer<LayerId>
source§impl<LayerId: PartialEq> PartialEq<RoutingLayer<LayerId>> for RoutingLayer<LayerId>
impl<LayerId: PartialEq> PartialEq<RoutingLayer<LayerId>> for RoutingLayer<LayerId>
source§fn eq(&self, other: &RoutingLayer<LayerId>) -> bool
fn eq(&self, other: &RoutingLayer<LayerId>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.