Struct gds::GdsLayerSpec
source · pub struct GdsLayerSpec {
pub layer: i16,
pub xtype: i16,
}
Expand description
A GDS layer spec.
Each GDSII element’s layer is specified by a set of two numbers,
commonly referred to as layer
and datatype
.
Several element-types refer to their analog of datatype
by different names,
e.g. texttype
and nodetype
.
GdsLayerSpecs
generalize across these via the xtype
field,
which holds whichever is appropriate for the given element.
Fields§
§layer: i16
Layer ID number.
xtype: i16
Data type (or text type, node type, etc.) ID number.
Implementations§
source§impl GdsLayerSpec
impl GdsLayerSpec
sourcepub fn new(layer: i16, xtype: i16) -> GdsLayerSpec
pub fn new(layer: i16, xtype: i16) -> GdsLayerSpec
Creates a new GdsLayerSpec.
Trait Implementations§
source§impl Clone for GdsLayerSpec
impl Clone for GdsLayerSpec
source§fn clone(&self) -> GdsLayerSpec
fn clone(&self) -> GdsLayerSpec
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 Debug for GdsLayerSpec
impl Debug for GdsLayerSpec
source§impl PartialEq for GdsLayerSpec
impl PartialEq for GdsLayerSpec
source§fn eq(&self, other: &GdsLayerSpec) -> bool
fn eq(&self, other: &GdsLayerSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GdsLayerSpec
impl Eq for GdsLayerSpec
impl StructuralPartialEq for GdsLayerSpec
Auto Trait Implementations§
impl RefUnwindSafe for GdsLayerSpec
impl Send for GdsLayerSpec
impl Sync for GdsLayerSpec
impl Unpin for GdsLayerSpec
impl UnwindSafe for GdsLayerSpec
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.