Struct gds21::GdsUnits [−][src]
pub struct GdsUnits(_, _);
Expand description
Gds Library Units
Each GDSII Library has two length-units, referred to as “DB Units” and “User Units” respectively. Essentially all spatial data throughout the Library is denoted in “DB Units”. “User units” are a sort of recommendation for GUI programs to use when displaying the Library.
From the spec’s UNITS
record-description:
Contains two eight-byte real numbers.
The first number is the size of a database-unit, in user-units.
The second is the size of a database-unit in meters.
To calculate the size of a user-unit in meters, divide the second number by the first.
These two numbers are stored as-is in the GdsUnits tuple-struct.
Implementations
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for GdsUnits
impl UnwindSafe for GdsUnits
Blanket Implementations
Mutably borrows from an owned value. Read more