pub struct Block {
pub handle: Handle,
pub layer: String,
pub name: String,
pub flags: i32,
pub base_point: Point,
pub xref_path_name: String,
pub description: String,
pub is_in_paperspace: bool,
pub entities: Vec<Entity>,
pub extension_data_groups: Vec<ExtensionGroup>,
pub x_data: Vec<XData>,
/* private fields */
}Expand description
A block is a collection of entities.
Fields§
§handle: HandleThe block’s handle.
layer: StringThe name of the layer containing the block.
name: StringThe name of the block.
flags: i32Block-type flags.
base_point: PointThe block’s base insertion point.
xref_path_name: StringThe path name of the XREF.
description: StringThe block’s description.
is_in_paperspace: boolIf the block is in PAPERSPACE or not.
entities: Vec<Entity>The entities contained by the block.
extension_data_groups: Vec<ExtensionGroup>Extension data groups.
x_data: Vec<XData>XData.
Implementations§
Source§impl Block
impl Block
pub fn owner<'a>(&self, drawing: &'a Drawing) -> Option<DrawingItem<'a>>
pub fn set_owner<'a>( &mut self, item: &'a mut DrawingItemMut<'_>, drawing: &'a mut Drawing, )
pub fn is_anonymous(&self) -> bool
pub fn set_is_anonymous(&mut self, val: bool)
pub fn has_non_consistent_attribute_definitions(&self) -> bool
pub fn set_has_non_consistent_attribute_definitions(&mut self, val: bool)
pub fn is_xref(&self) -> bool
pub fn set_is_xref(&mut self, val: bool)
pub fn is_xref_overlay(&self) -> bool
pub fn set_is_xref_overlay(&mut self, val: bool)
pub fn is_externally_dependent(&self) -> bool
pub fn set_is_externally_dependent(&mut self, val: bool)
pub fn is_referenced_external_reference(&self) -> bool
pub fn set_is_referenced_external_reference(&mut self, val: bool)
pub fn is_resolved_external_reference(&self) -> bool
pub fn set_is_resolved_external_reference(&mut self, val: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().