Struct lef21::LefMacro[][src]

pub struct LefMacro {
Show 14 fields pub name: String, pub pins: Vec<LefPin>, pub obs: Vec<LefLayerGeometries>, pub class: Option<LefMacroClass>, pub foreign: Option<LefForeign>, pub origin: Option<LefPoint>, pub size: Option<(LefDecimal, LefDecimal)>, pub symmetry: Option<Vec<LefSymmetry>>, pub site: Option<String>, pub source: Option<LefDefSource>, pub fixed_mask: Unsupported, pub eeq: Unsupported, pub density: Unsupported, pub properties: Unsupported,
}
Expand description

Lef Macro

The primary block-level construct comprising each LefLibrary. Defines a hardware-block’s physical abstract, including:

  • Pin definitions (pins) with locations, directions, and associated metadata
  • Required blockage-obstructions (obs)
  • A variety of other block-level metadata

Fields

name: String

Macro Name

pins: Vec<LefPin>

Pin List

obs: Vec<LefLayerGeometries>

Obstructions

class: Option<LefMacroClass>

Macro Class

foreign: Option<LefForeign>

Foreign (i.e. GDSII, DEF) Cell

origin: Option<LefPoint>

X-Y Origin

size: Option<(LefDecimal, LefDecimal)>

Outline Size

symmetry: Option<Vec<LefSymmetry>>

Rotational & Translation Symmetries

site: Option<String>

Site Name
Note the optional SITEPATTERN is not supported

source: Option<LefDefSource>

Source
Valid for LEF versions 5.4 and earlier

fixed_mask: Unsupported

Fixed Mask Option (Unsupported)

eeq: Unsupported

Electrically-Equivalent Cell (Unsupported)

density: Unsupported

Density Objects (Unsupported)

properties: Unsupported

Properties (Unsupported)

Implementations

Create a new and initially empty LefMacro with name name

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Save in fmt-format to file fname

Open from fmt-format file fname

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.