Skip to main contentCrate gdsr
Source - Cell
- A named cell containing polygons, paths, boxes, nodes, texts, and references to other cells or elements.
- CellStats
- Summary statistics for a single cell.
- DanglingCellReference
- A dangling reference: a cell contains a reference to a target that doesn’t exist.
- DataType
- A GDS data type number (0–255 in spec, stored as
u16). - FloatUnit
- A unit value backed by a 64-bit float.
- GdsBox
- A GDS II Box element defined by two diagonal corners on a specific layer.
- Grid
- A grid layout that repeats elements in rows and columns with optional transformations.
- IntegerUnit
- A unit value backed by a 32-bit integer.
- Layer
- A GDS layer number (0–255 in spec, stored as
u16). - Library
- A GDSII library containing named cells. This is the top-level container for a GDSII design.
- LibraryStats
- Summary statistics for an entire library.
- Node
- A GDS II Node element used as a point-like marker for design verification (DRC/LVS).
- Path
- An open path defined by a sequence of points, with optional width and end cap type.
- Point
- A 2D point with x and y coordinates, each carrying their own unit of measurement.
- Polygon
- A closed polygon defined by a sequence of points on a specific layer.
- Reference
- A reference to an instance (cell or element) placed with a grid layout.
- Reflection
- A reflection transformation defined by an axis angle and centre point.
- Rotation
- A rotation transformation defined by an angle (in radians) and a centre point.
- Scale
- A scale transformation defined by a factor and a centre point.
- Text
- A text annotation placed at a specific point with configurable presentation.
- Transformation
- A composite transformation that applies reflection, rotation, scale, and translation in order.
- Translation
- A translation transformation defined by a delta point.
- Element
- A GDSII element: one of
Path, Polygon, GdsBox, Node, Text, or Reference. - GdsError
- Error type for GDSII operations.
- HorizontalPresentation
- Instance
- The target of a
Reference: either a cell name or an inline element. - PathType
- Unit
- Represents a unit of measurement.
- VerticalPresentation
- DEFAULT_FLOAT_UNITS
- Default units for float values (1e-6, i.e. micrometers).
- DEFAULT_INTEGER_UNITS
- Default units for integer values (1e-9, i.e. nanometers).
- Dimensions
- Trait for types that have spatial dimensions and a bounding box.
- Movable
- Trait for types that can be repositioned by moving to an absolute target or by a relative delta.
- ToGds
- Trait for types that can be serialized to the GDSII binary format.
- Transformable
- Trait for types that can be geometrically transformed (rotated, scaled, reflected, translated).
- cell_to_svg
- Exports a cell to SVG, flattening all references using the library.
- AngleInRadians
- LayerMapping
- A mapping from one (
Layer, DataType) pair to another, used for bulk layer remapping.