pub struct GdsUnits(/* private fields */);
Expand description
An encoding of GDS 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§
source§impl<'de> Deserialize<'de> for GdsUnits
impl<'de> Deserialize<'de> for GdsUnits
source§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
source§impl PartialEq for GdsUnits
impl PartialEq for GdsUnits
impl StructuralPartialEq for GdsUnits
Auto Trait Implementations§
impl RefUnwindSafe for GdsUnits
impl Send for GdsUnits
impl Sync for GdsUnits
impl Unpin for GdsUnits
impl UnwindSafe for GdsUnits
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