pub struct GdsStrans {
pub reflected: bool,
pub abs_mag: bool,
pub abs_angle: bool,
pub mag: Option<f64>,
pub angle: Option<f64>,
}
Expand description
A GDS translation setting.
Reflection, rotation, and magnification for text-elements and references.
As configured by STRANS
records.
Fields§
§reflected: bool
Reflection about the x-axis.
Applied before rotation.
abs_mag: bool
Absolute magnification setting
abs_angle: bool
Absolute angle setting
mag: Option<f64>
Magnification factor. Defaults to 1.0 if not specified.
angle: Option<f64>
Angle in degrees counter-clockwise. Defaults to zero if not specified.
Trait Implementations§
source§impl<'de> Deserialize<'de> for GdsStrans
impl<'de> Deserialize<'de> for GdsStrans
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 GdsStrans
impl PartialEq for GdsStrans
impl StructuralPartialEq for GdsStrans
Auto Trait Implementations§
impl RefUnwindSafe for GdsStrans
impl Send for GdsStrans
impl Sync for GdsStrans
impl Unpin for GdsStrans
impl UnwindSafe for GdsStrans
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