pub struct GdsBox {
pub layer: i16,
pub boxtype: i16,
pub xy: [GdsPoint; 5],
pub elflags: Option<GdsElemFlags>,
pub plex: Option<GdsPlex>,
pub properties: Vec<GdsProperty>,
}
Expand description
A GDS box element.
Spec BNF:
BOX [ELFLAGS] [PLEX] LAYER BOXTYPE XY
Fields§
§layer: i16
Layer number.
boxtype: i16
Box type ID.
xy: [GdsPoint; 5]
Vector of x,y coordinates.
elflags: Option<GdsElemFlags>
§plex: Option<GdsPlex>
§properties: Vec<GdsProperty>
Trait Implementations§
source§impl<'de> Deserialize<'de> for GdsBox
impl<'de> Deserialize<'de> for GdsBox
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<GdsBox> for GdsElement
impl From<GdsBox> for GdsElement
source§fn from(original: GdsBox) -> GdsElement
fn from(original: GdsBox) -> GdsElement
Converts to this type from the input type.
source§impl PartialEq for GdsBox
impl PartialEq for GdsBox
impl StructuralPartialEq for GdsBox
Auto Trait Implementations§
impl RefUnwindSafe for GdsBox
impl Send for GdsBox
impl Sync for GdsBox
impl Unpin for GdsBox
impl UnwindSafe for GdsBox
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