pub enum Item {
Edge(Curve),
Face(Vec<Vec<Curve>>),
Glyph(Vec<Vec<Curve>>, usize),
TextStroke(Curve, usize),
FrameText(Curve, usize),
}Expand description
What a layer holds: a curve stroked, or a face (its outer boundary and holes) filled.
Variants§
Edge(Curve)
Face(Vec<Vec<Curve>>)
Glyph(Vec<Vec<Curve>>, usize)
Glyph outlines belonging to a text run; ordinary exporters paint these as faces.
usize::MAX identifies an outline-only furniture label recorded in Sheet::dxf.
TextStroke(Curve, usize)
A font-independent callout symbol stroke, replaced by native text in DXF.
FrameText(Curve, usize)
A stroke or arc of the CAD-font text of a GD&T frame (crate::dims::gdt): painted
with the text pen (TEXT_PEN) whatever its layer’s width, and replaced by native text
in DXF as a Item::TextStroke is.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Forget for Item
impl Freeze for Item
impl Move for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more