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>,
}
Expand description
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.
Implementations§
Source§impl Library
impl Library
Sourcepub fn new(v: i16, n: String) -> Library
pub 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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnwindSafe for Library
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more