#[non_exhaustive]pub struct Layer {
pub name: Name,
pub color: Color,
pub on: bool,
pub frozen: bool,
pub locked: bool,
pub plot: bool,
pub linetype: Option<Name>,
pub lineweight: Lineweight,
pub transparency: Option<u8>,
}Expand description
a layer of the table
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Name§color: Color62 (its magnitude) or 420
on: bool62 negative: off; 70 bit 1: frozen, bit 4: locked; 290: plotted
frozen: bool§locked: bool§plot: bool§linetype: Option<Name>6 (None: CONTINUOUS)
lineweight: Lineweight370 (Default when absent)
transparency: Option<u8>the XDATA AcCmTransparency (1071): an alpha
Trait Implementations§
impl Copy for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Forget for Layer
impl Freeze for Layer
impl Move 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