pub enum GdsRecord {
Show 49 variants
Header {
version: i16,
},
BgnLib {
dates: Vec<i16>,
},
LibName(ArcStr),
Units(f64, f64),
EndLib,
BgnStruct {
dates: Vec<i16>,
},
StructName(ArcStr),
StructRefName(ArcStr),
EndStruct,
Boundary,
Path,
StructRef,
ArrayRef,
Text,
Layer(i16),
DataType(i16),
Width(i32),
Xy(Vec<i32>),
EndElement,
ColRow {
cols: i16,
rows: i16,
},
Node,
TextType(i16),
Presentation(u8, u8),
String(ArcStr),
Strans(u8, u8),
Mag(f64),
Angle(f64),
RefLibs(ArcStr),
Fonts(ArcStr),
PathType(i16),
Generations(i16),
AttrTable(ArcStr),
ElemFlags(u8, u8),
Nodetype(i16),
PropAttr(i16),
PropValue(ArcStr),
Box,
BoxType(i16),
Plex(i32),
BeginExtn(i32),
EndExtn(i32),
TapeNum(i16),
TapeCode(Vec<i16>),
Format(i16),
Mask(ArcStr),
EndMasks,
LibDirSize(i16),
SrfName(ArcStr),
LibSecur(i16),
}
Expand description
An enumeration of GDS record types.
Keeps each record in relatively “raw” form, other than assuring correct data-types, and converting one-entry arrays into scalars. Invalid record-types are not included.
Variants§
Header
BgnLib
LibName(ArcStr)
Units(f64, f64)
EndLib
BgnStruct
StructName(ArcStr)
StructRefName(ArcStr)
EndStruct
Boundary
Path
StructRef
ArrayRef
Text
Layer(i16)
DataType(i16)
Width(i32)
Xy(Vec<i32>)
EndElement
ColRow
Node
TextType(i16)
Presentation(u8, u8)
String(ArcStr)
Strans(u8, u8)
Mag(f64)
Angle(f64)
RefLibs(ArcStr)
Fonts(ArcStr)
PathType(i16)
Generations(i16)
AttrTable(ArcStr)
ElemFlags(u8, u8)
Nodetype(i16)
PropAttr(i16)
PropValue(ArcStr)
Box
BoxType(i16)
Plex(i32)
BeginExtn(i32)
EndExtn(i32)
TapeNum(i16)
TapeCode(Vec<i16>)
Format(i16)
Mask(ArcStr)
EndMasks
LibDirSize(i16)
SrfName(ArcStr)
LibSecur(i16)
Trait Implementations§
source§impl<'de> Deserialize<'de> for GdsRecord
impl<'de> Deserialize<'de> for GdsRecord
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 GdsRecord
impl PartialEq for GdsRecord
impl StructuralPartialEq for GdsRecord
Auto Trait Implementations§
impl RefUnwindSafe for GdsRecord
impl Send for GdsRecord
impl Sync for GdsRecord
impl Unpin for GdsRecord
impl UnwindSafe for GdsRecord
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