pub struct Layer {
pub handle: Handle,
pub name: String,
pub flags: LayerFlags,
pub color: Color,
pub line_type: String,
pub line_weight: LineWeight,
pub plot_style: String,
pub is_plottable: bool,
pub material: Handle,
pub plotstyle_handle: Handle,
pub xref_block_record_handle: Handle,
}Expand description
A layer table entry
Fields§
§handle: HandleUnique handle
name: StringLayer name
flags: LayerFlagsLayer flags
color: ColorLayer color
line_type: StringLine type name
line_weight: LineWeightLine weight
plot_style: StringPlot style name
is_plottable: boolIs this layer plottable?
material: HandleMaterial handle
plotstyle_handle: HandlePlot style handle (R2000+)
xref_block_record_handle: HandleExternal reference block record handle (for xref-dependent layers)
Implementations§
Trait Implementations§
Source§impl TableEntry for Layer
impl TableEntry for Layer
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 Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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