pub struct Macro {
Show 13 fields pub name: String, pub class: Option<MacroClass>, pub fixed_mask: bool, pub foreign: Vec<(String, Point<f64>, Orient)>, pub origin: Point<f64>, pub eeq: Option<String>, pub size: Option<(f64, f64)>, pub symmetry: Symmetry, pub sites: Vec<Site>, pub pins: Vec<MacroPin>, pub obs: Vec<LayerGeometries>, pub density: Vec<()>, pub properties: BTreeMap<String, ()>,
}
Expand description

MACRO definition.

Fields§

§name: String

Name of the macro.

§class: Option<MacroClass>

Class of the macro.

§fixed_mask: bool

Disable shifting of masks. When set, shifting of macro pin mask assignments to other masks is not allowed. Used for technologies that use multi-mask patterning.

§foreign: Vec<(String, Point<f64>, Orient)>

Name of the corresponding cell layout in the GDS/OASIS file. Associated with an offset and orientation.

§origin: Point<f64>

Coordinate of the origin of the macro. Default is (0, 0). A placement of a cell in DEF is given by the location of the origin.

§eeq: Option<String>

Name of electrically equivalent macro.

§size: Option<(f64, f64)>

Width and height of the macro.

§symmetry: Symmetry

Symmetry of the macro. Tells how the macro can be mirrored and rotated.

§sites: Vec<Site>

SITES associated with the macro. Normal macros have only one associated site.

§pins: Vec<MacroPin>

Definitions of the electrical pins of the macro.

§obs: Vec<LayerGeometries>

Obstructions (blockages).

§density: Vec<()>

Density specifications.

§properties: BTreeMap<String, ()>

Additional properties of the macro.

Trait Implementations§

source§

impl Clone for Macro

source§

fn clone(&self) -> Macro

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Macro

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Macro

source§

fn default() -> Macro

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Macro

§

impl Send for Macro

§

impl Sync for Macro

§

impl Unpin for Macro

§

impl UnwindSafe for Macro

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.