pub struct DxfClassCollection { /* private fields */ }Expand description
Collection of DXF class definitions, keyed by DXF name (case-insensitive).
Corresponds to ACadSharp’s DxfClassCollection.
Implementations§
Source§impl DxfClassCollection
impl DxfClassCollection
Sourcepub fn add_or_update(&mut self, class: DxfClass)
pub fn add_or_update(&mut self, class: DxfClass)
Add a class. If a class with the same DXF name already exists, only its instance count is updated (matching ACadSharp behavior).
Sourcepub fn get_by_name(&self, dxf_name: &str) -> Option<&DxfClass>
pub fn get_by_name(&self, dxf_name: &str) -> Option<&DxfClass>
Get a class by its DXF name (case-insensitive)
Sourcepub fn update_defaults(&mut self)
pub fn update_defaults(&mut self)
Populate with default class definitions that AutoCAD expects.
This mirrors ACadSharp’s DxfClassCollection.UpdateDxfClasses().
Trait Implementations§
Source§impl Clone for DxfClassCollection
impl Clone for DxfClassCollection
Source§fn clone(&self) -> DxfClassCollection
fn clone(&self) -> DxfClassCollection
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 DxfClassCollection
impl Debug for DxfClassCollection
Source§impl Default for DxfClassCollection
impl Default for DxfClassCollection
Source§impl<'a> IntoIterator for &'a DxfClassCollection
impl<'a> IntoIterator for &'a DxfClassCollection
Source§impl PartialEq for DxfClassCollection
impl PartialEq for DxfClassCollection
impl StructuralPartialEq for DxfClassCollection
Auto Trait Implementations§
impl Freeze for DxfClassCollection
impl RefUnwindSafe for DxfClassCollection
impl Send for DxfClassCollection
impl Sync for DxfClassCollection
impl Unpin for DxfClassCollection
impl UnsafeUnpin for DxfClassCollection
impl UnwindSafe for DxfClassCollection
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