Struct libreda_db::technology::layerstack::RoutingLayer
source · [−]pub struct RoutingLayer<LayerId> { /* private fields */ }Expand description
Annotate a layer ID as ‘via’ or ‘routing’ layer.
Implementations
sourceimpl<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.
Auto Trait Implementations
impl<LayerId> RefUnwindSafe for RoutingLayer<LayerId> where
LayerId: RefUnwindSafe,
impl<LayerId> Send for RoutingLayer<LayerId> where
LayerId: Send,
impl<LayerId> Sync for RoutingLayer<LayerId> where
LayerId: Sync,
impl<LayerId> Unpin for RoutingLayer<LayerId> where
LayerId: Unpin,
impl<LayerId> UnwindSafe for RoutingLayer<LayerId> where
LayerId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more