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: i16
Version of GDS used in the File.
name: String
Name of the Library.
date_mod: Date
Date of last modification.
date_acc: Date
Date of last access.
units_user: f64
Database unit in user units.
units_m: f64
Database unit in metres.
structures: Vec<Structure>
Vector contaning the structures of the file.
Methods
impl Library
[src]
fn new(v: i16, n: String) -> Library
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:00date_acc
- 01.01.1970 00:00:00units_user
- 0units_m
- 0structures
- empty
fn read(s: &str) -> Library
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.
fn write(&self, s: &str)
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]
fn clone(&self) -> Library
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more