Enum gds::GdsElement
source · pub enum GdsElement {
GdsBoundary(GdsBoundary),
GdsPath(GdsPath),
GdsStructRef(GdsStructRef),
GdsArrayRef(GdsArrayRef),
GdsTextElem(GdsTextElem),
GdsNode(GdsNode),
GdsBox(GdsBox),
}
Expand description
An enumeration of GDS elements.
Primary union of geometric elements, instances, and arrays which comprise a GDSII struct (cell).
Spec BNF:
{<boundary> | <path> | <SREF> | <AREF> | <text> | <node> | <box>} {<property>}* ENDEL
Note the properties
vectors are pushed down to each enum variant.
Variants§
GdsBoundary(GdsBoundary)
GdsPath(GdsPath)
GdsStructRef(GdsStructRef)
GdsArrayRef(GdsArrayRef)
GdsTextElem(GdsTextElem)
GdsNode(GdsNode)
GdsBox(GdsBox)
Trait Implementations§
source§impl Clone for GdsElement
impl Clone for GdsElement
source§fn clone(&self) -> GdsElement
fn clone(&self) -> GdsElement
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 GdsElement
impl Debug for GdsElement
source§impl<'de> Deserialize<'de> for GdsElement
impl<'de> Deserialize<'de> for GdsElement
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<GdsArrayRef> for GdsElement
impl From<GdsArrayRef> for GdsElement
source§fn from(original: GdsArrayRef) -> GdsElement
fn from(original: GdsArrayRef) -> GdsElement
Converts to this type from the input type.
source§impl From<GdsBoundary> for GdsElement
impl From<GdsBoundary> for GdsElement
source§fn from(original: GdsBoundary) -> GdsElement
fn from(original: GdsBoundary) -> GdsElement
Converts to this type from the input type.
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 From<GdsNode> for GdsElement
impl From<GdsNode> for GdsElement
source§fn from(original: GdsNode) -> GdsElement
fn from(original: GdsNode) -> GdsElement
Converts to this type from the input type.
source§impl From<GdsPath> for GdsElement
impl From<GdsPath> for GdsElement
source§fn from(original: GdsPath) -> GdsElement
fn from(original: GdsPath) -> GdsElement
Converts to this type from the input type.
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 From<GdsTextElem> for GdsElement
impl From<GdsTextElem> for GdsElement
source§fn from(original: GdsTextElem) -> GdsElement
fn from(original: GdsTextElem) -> GdsElement
Converts to this type from the input type.
source§impl PartialEq for GdsElement
impl PartialEq for GdsElement
source§fn eq(&self, other: &GdsElement) -> bool
fn eq(&self, other: &GdsElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GdsElement
impl Serialize for GdsElement
impl StructuralPartialEq for GdsElement
Auto Trait Implementations§
impl RefUnwindSafe for GdsElement
impl Send for GdsElement
impl Sync for GdsElement
impl Unpin for GdsElement
impl UnwindSafe for GdsElement
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