Struct gds21::GdsLibrary[][src]

pub struct GdsLibrary {
Show 13 fields pub name: String, pub version: i16, pub dates: GdsDateTimes, pub units: GdsUnits, pub structs: Vec<GdsStruct>, pub libdirsize: Unsupported, pub srfname: Unsupported, pub libsecur: Unsupported, pub reflibs: Unsupported, pub fonts: Unsupported, pub attrtable: Unsupported, pub generations: Unsupported, pub format_type: Unsupported,
}
Expand description

Gds Library

The Library is GDSII’s primary idiom for a suite of layout-cells. A Library generally corresponds one-to-one with a .gds file. Libraries consist primarily of cell-definitions (GdsStructs), and secondarily include library-level meta-data, including the distance units, GDS-spec version, and modification dates.

Several more esoteric library-level GDSII features are included as GdsLibrary fields, but are not materially supported. The empty Unsupported value generally denotes these fields.

Spec BNF:

HEADER BGNLIB [LIBDIRSIZE] [SRFNAME] [LIBSECUR] LIBNAME [REFLIBS] [FONTS] [ATTRTABLE] [GENERATIONS] [<FormatType>]
UNITS {<structure>}* ENDLIB

Fields

name: String

Library Name

version: i16

Gds Spec Version

dates: GdsDateTimesunits: GdsUnits

Spatial Units

structs: Vec<GdsStruct>

Struct Definitions

libdirsize: Unsupportedsrfname: Unsupportedlibsecur: Unsupportedreflibs: Unsupportedfonts: Unsupportedattrtable: Unsupportedgenerations: Unsupportedformat_type: Unsupported

Implementations

Create a new and empty GdsLibrary

Read a GDS loaded from file at path fname

Read a GdsLibrary from byte-vector bytes

Collect and return the library’s aggregate statistics (numbers of structs, elements by type)

Save to file fname

Write to file file

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

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.