Struct gds::GdsStructRef
source · pub struct GdsStructRef {
pub name: ArcStr,
pub xy: GdsPoint,
pub strans: Option<GdsStrans>,
pub elflags: Option<GdsElemFlags>,
pub plex: Option<GdsPlex>,
pub properties: Vec<GdsProperty>,
}
Expand description
A GDS struct reference (cell instance).
Represents an instance of a layout cell.
Coordinate vector xy
is dictated by spec to have exactly one point (or two numbers),
specifying the instance’s lower-left coordinate.
Options for rotation and reflection are configured in the GdsStrans attribute strans
.
Spec BNF:
SREF [ELFLAGS] [PLEX] SNAME [<strans>] XY
Fields§
§name: ArcStr
Struct (cell) name.
xy: GdsPoint
Location x,y coordinates.
strans: Option<GdsStrans>
Translation & reflection options.
elflags: Option<GdsElemFlags>
§plex: Option<GdsPlex>
§properties: Vec<GdsProperty>
Trait Implementations§
source§impl Clone for GdsStructRef
impl Clone for GdsStructRef
source§fn clone(&self) -> GdsStructRef
fn clone(&self) -> GdsStructRef
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 GdsStructRef
impl Debug for GdsStructRef
source§impl Default for GdsStructRef
impl Default for GdsStructRef
source§fn default() -> GdsStructRef
fn default() -> GdsStructRef
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GdsStructRef
impl<'de> Deserialize<'de> for GdsStructRef
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<GdsStructRef> for GdsElement
impl From<GdsStructRef> for GdsElement
source§fn from(original: GdsStructRef) -> GdsElement
fn from(original: GdsStructRef) -> GdsElement
Converts to this type from the input type.
source§impl PartialEq for GdsStructRef
impl PartialEq for GdsStructRef
source§fn eq(&self, other: &GdsStructRef) -> bool
fn eq(&self, other: &GdsStructRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GdsStructRef
impl Serialize for GdsStructRef
impl StructuralPartialEq for GdsStructRef
Auto Trait Implementations§
impl RefUnwindSafe for GdsStructRef
impl Send for GdsStructRef
impl Sync for GdsStructRef
impl Unpin for GdsStructRef
impl UnwindSafe for GdsStructRef
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