pub struct GdsTransform {
pub flag: GdsTransformFlag,
pub magnification: Option<f64>,
pub angle: Option<f64>,
}Fields§
§flag: GdsTransformFlagSTRANS record flags
magnification: Option<f64>MAG record Eight-Byte Real Contains a double-precision real number (8 bytes), which is the magnification factor. If this record is omitted, a magnification factor of one is assumed.
angle: Option<f64>ANGLE record Eight-Byte Real Contains a double-precision real number (8 bytes), which is the angular rotation factor.
Implementations§
Source§impl GdsTransform
impl GdsTransform
Source§impl GdsTransform
impl GdsTransform
Sourcepub fn with_magnification(self, m: f64) -> Self
pub fn with_magnification(self, m: f64) -> Self
Set magnification (relative magnification unless absolute bit is set).
Sourcepub fn with_rotation(self, angle_deg: f64) -> Self
pub fn with_rotation(self, angle_deg: f64) -> Self
Set rotation angle in degrees (CCW, per GDSII spec).
Sourcepub fn absolute_magnification(self) -> Self
pub fn absolute_magnification(self) -> Self
Mark magnification as absolute.
Sourcepub fn absolute_angle(self) -> Self
pub fn absolute_angle(self) -> Self
Mark angle as absolute.
Trait Implementations§
Source§impl Clone for GdsTransform
impl Clone for GdsTransform
Source§fn clone(&self) -> GdsTransform
fn clone(&self) -> GdsTransform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GdsTransform
Source§impl Debug for GdsTransform
impl Debug for GdsTransform
Source§impl PartialEq for GdsTransform
impl PartialEq for GdsTransform
impl StructuralPartialEq for GdsTransform
Auto Trait Implementations§
impl Freeze for GdsTransform
impl RefUnwindSafe for GdsTransform
impl Send for GdsTransform
impl Sync for GdsTransform
impl Unpin for GdsTransform
impl UnsafeUnpin for GdsTransform
impl UnwindSafe for GdsTransform
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more