pub enum DxfVersion {
Unknown,
AC1012,
AC1014,
AC1015,
AC1018,
AC1021,
AC1024,
AC1027,
AC1032,
}Expand description
DXF version enumeration
Variants§
Unknown
Unknown version
AC1012
AutoCAD R13 (AC1012)
AC1014
AutoCAD R14 (AC1014)
AC1015
AutoCAD 2000 (AC1015)
AC1018
AutoCAD 2004 (AC1018)
AC1021
AutoCAD 2007 (AC1021)
AC1024
AutoCAD 2010 (AC1024)
AC1027
AutoCAD 2013 (AC1027)
AC1032
AutoCAD 2018 (AC1032)
Implementations§
Source§impl DxfVersion
impl DxfVersion
Sourcepub fn to_dxf_string(&self) -> &'static str
pub fn to_dxf_string(&self) -> &'static str
Get the DXF version string for the HEADER section
Sourcepub fn from_version_string(s: &str) -> Self
pub fn from_version_string(s: &str) -> Self
Parse version from version string (e.g., “AC1015”)
Sourcepub fn version_code(&self) -> u16
pub fn version_code(&self) -> u16
Get the numeric version code
Sourcepub fn from_version_code(code: u16) -> Self
pub fn from_version_code(code: u16) -> Self
Create version from numeric code
Trait Implementations§
Source§impl Clone for DxfVersion
impl Clone for DxfVersion
Source§fn clone(&self) -> DxfVersion
fn clone(&self) -> DxfVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DxfVersion
impl Debug for DxfVersion
Source§impl Display for DxfVersion
impl Display for DxfVersion
Source§impl Hash for DxfVersion
impl Hash for DxfVersion
Source§impl Ord for DxfVersion
impl Ord for DxfVersion
Source§fn cmp(&self, other: &DxfVersion) -> Ordering
fn cmp(&self, other: &DxfVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DxfVersion
impl PartialEq for DxfVersion
Source§impl PartialOrd for DxfVersion
impl PartialOrd for DxfVersion
impl Copy for DxfVersion
impl Eq for DxfVersion
impl StructuralPartialEq for DxfVersion
Auto Trait Implementations§
impl Freeze for DxfVersion
impl RefUnwindSafe for DxfVersion
impl Send for DxfVersion
impl Sync for DxfVersion
impl Unpin for DxfVersion
impl UnsafeUnpin for DxfVersion
impl UnwindSafe for DxfVersion
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.