Struct gds::Library [] [src]

pub struct Library {
    pub version: i16,
    pub name: String,
    pub date_mod: Date,
    pub date_acc: Date,
    pub units_user: f64,
    pub units_m: f64,
    pub structures: Vec<Structure>,
}

A structure representing a GDS file. The structure consists of header informations and one or more structures.

Fields

Version of GDS used in the File.

Name of the Library.

Date of last modification.

Date of last access.

Database unit in user units.

Database unit in metres.

Vector contaning the structures of the file.

Methods

impl Library
[src]

Creates new Library object.

Version v and name n have to be given. The other values are initialized with default values:

  • date_mod - 01.01.1970 00:00:00
  • date_acc - 01.01.1970 00:00:00
  • units_user - 0
  • units_m - 0
  • structures - empty

Read library from file.

This function will read the Library from the file given by its filename s. Specifing a wrong designed file will not result in any errors or security problem but in a useless Library object.

Write library object to file.

The library object will be written to the filed specified by its filename s.

Trait Implementations

impl Clone for Library
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Library
[src]

Formats the value using the given formatter. Read more