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: GdsDateTimes
units: GdsUnits
Spatial Units
structs: Vec<GdsStruct>
Struct Definitions
libdirsize: Unsupported
srfname: Unsupported
libsecur: Unsupported
reflibs: Unsupported
fonts: Unsupported
attrtable: Unsupported
generations: Unsupported
format_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)
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GdsLibrary
impl Send for GdsLibrary
impl Sync for GdsLibrary
impl Unpin for GdsLibrary
impl UnwindSafe for GdsLibrary
Blanket Implementations
Mutably borrows from an owned value. Read more