pub struct Layer {
pub name: &'static str,
pub width: f64,
pub line_type: LineType,
pub color: u8,
}Expand description
What a stroke or label is, which decides how it is drawn: a layer of a DXF file, a class of an SVG one. The sheet knows no layer of its own: whoever draws on it defines the layers it draws on (a drawing its visible and hidden lines, a flat pattern what is cut and where it is bent).
Fields§
§name: &'static strIts name, as a DXF layer and an SVG class.
width: f64Its strokes’ width, in millimetres.
line_type: LineType§color: u8Its colour, by AutoCAD colour index.
Trait Implementations§
impl Copy for Layer
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