#[non_exhaustive]pub struct Header {Show 15 fields
pub version: String,
pub codepage: String,
pub insunits: i32,
pub ltscale: f64,
pub lwdisplay: Option<bool>,
pub lwdefault: u16,
pub pdmode: i32,
pub pdsize: f64,
pub extmin: Option<P3>,
pub extmax: Option<P3>,
pub dimscale: f64,
pub dimasz: f64,
pub textsize: f64,
pub mirrtext: bool,
pub present: bool,
}Expand description
the header’s variables this reader uses
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: String$ACADVER (AC1009 R12 … AC1032 2018; empty without a header), $DWGCODEPAGE
codepage: String§insunits: i32$INSUNITS (0 unitless, 1 inch, 4 mm, 6 m, …)
ltscale: f64$LTSCALE, $CELTSCALE
lwdisplay: Option<bool>$LWDISPLAY (None: not in the file), $LWDEFAULT (hundredths of a mm)
lwdefault: u16§pdmode: i32$PDMODE, $PDSIZE
pdsize: f64§extmin: Option<P3>$EXTMIN, $EXTMAX
extmax: Option<P3>§dimscale: f64$DIMSCALE, $DIMASZ, $TEXTSIZE, $MIRRTEXT
dimasz: f64§textsize: f64§mirrtext: bool§present: boolwhether the file had a HEADER section
Trait Implementations§
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Forget for Header
impl Freeze for Header
impl Move for Header
impl RefUnwindSafe for Header
impl Send for Headerwhere
RawVecInner: Send,
impl Sync for Headerwhere
RawVecInner: Sync,
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Headerwhere
RawVecInner: UnwindSafe,
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