pub struct RoutingLayer<LayerId> {
pub id: LayerId,
pub layer_type: RoutingLayerType,
}
Expand description
Annotate a layer ID as ‘via’ or ‘routing’ layer.
Fields§
§id: LayerId
ID of the layer. This identifies the layer in the data-base structures.
layer_type: RoutingLayerType
Type 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 duplicate 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 for RoutingLayer<LayerId>
impl<LayerId: PartialEq> PartialEq for RoutingLayer<LayerId>
impl<LayerId: Copy> Copy for RoutingLayer<LayerId>
impl<LayerId: Eq> Eq for RoutingLayer<LayerId>
impl<LayerId> StructuralPartialEq for RoutingLayer<LayerId>
Auto Trait Implementations§
impl<LayerId> Freeze for RoutingLayer<LayerId>where
LayerId: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more