pub struct GdsLayerSpec {
pub layer: i16,
pub xtype: i16,
}Expand description
§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: i16Layer ID Number
xtype: i16DataType (or TextType, NodeType, 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
Create a new GdsLayerSpec ]
Auto Trait Implementations§
impl Freeze for GdsLayerSpec
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