pub struct BlockRecord {
pub handle: Handle,
pub block_entity_handle: Handle,
pub block_end_handle: Handle,
pub name: String,
pub flags: BlockFlags,
pub layout: Handle,
pub units: i16,
pub explodable: bool,
pub scale_uniformly: bool,
pub entity_handles: Vec<Handle>,
pub xref_path: String,
}Expand description
A block record table entry
Fields§
§handle: HandleUnique handle for the block record table entry
block_entity_handle: HandleHandle for the BLOCK entity
block_end_handle: HandleHandle for the ENDBLK entity
name: StringBlock name
flags: BlockFlagsBlock flags
layout: HandleLayout handle (if this block is a layout)
units: i16Units for block scaling
explodable: boolExplodability flag
scale_uniformly: boolCan scale uniformly
entity_handles: Vec<Handle>Handles of entities owned by this block
xref_path: StringXRef file path (empty for normal blocks)
Implementations§
Source§impl BlockRecord
impl BlockRecord
Sourcepub fn model_space() -> Self
pub fn model_space() -> Self
Create the model space block record
Sourcepub fn paper_space() -> Self
pub fn paper_space() -> Self
Create the paper space block record
Sourcepub fn is_model_space(&self) -> bool
pub fn is_model_space(&self) -> bool
Check if this is a model space block
Sourcepub fn is_paper_space(&self) -> bool
pub fn is_paper_space(&self) -> bool
Check if this is a paper space block
Sourcepub fn is_anonymous(&self) -> bool
pub fn is_anonymous(&self) -> bool
Check if this block is anonymous
Trait Implementations§
Source§impl Clone for BlockRecord
impl Clone for BlockRecord
Source§fn clone(&self) -> BlockRecord
fn clone(&self) -> BlockRecord
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 BlockRecord
impl Debug for BlockRecord
Source§impl PartialEq for BlockRecord
impl PartialEq for BlockRecord
Source§impl TableEntry for BlockRecord
impl TableEntry for BlockRecord
Source§fn set_handle(&mut self, handle: Handle)
fn set_handle(&mut self, handle: Handle)
Set the entry’s handle
Source§fn is_standard(&self) -> bool
fn is_standard(&self) -> bool
Check if this is a standard/default entry
impl StructuralPartialEq for BlockRecord
Auto Trait Implementations§
impl Freeze for BlockRecord
impl RefUnwindSafe for BlockRecord
impl Send for BlockRecord
impl Sync for BlockRecord
impl Unpin for BlockRecord
impl UnsafeUnpin for BlockRecord
impl UnwindSafe for BlockRecord
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