#[non_exhaustive]pub enum Kind {
Show 18 variants
Line {
a: P3,
b: P3,
},
Point {
at: P3,
angle: f64,
},
Circle {
center: P3,
radius: f64,
},
Arc {
center: P3,
radius: f64,
start: f64,
end: f64,
},
Ellipse {
center: P3,
major: P3,
ratio: f64,
start: f64,
end: f64,
},
Spline(Spline),
Polyline(Polyline),
Mesh(Mesh),
Text(Text),
MText(MText),
Insert(Insert),
Hatch(Hatch),
Quad(Quad),
BlockRef(BlockRef),
Leader(Leader),
Wipeout(Wipeout),
Ray {
at: P3,
dir: P3,
both: bool,
},
Other,
}Expand description
an entity’s geometry
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Line
Point
POINT: WCS, 50 the angle of its symbol (degrees)
Circle
CIRCLE and ARC (OCS centre; angles in degrees, counter-clockwise from start to end)
Arc
Ellipse
ELLIPSE: WCS centre, the major axis’ end relative to it, minor / major, the parameters (radians)
Spline(Spline)
Polyline(Polyline)
Mesh(Mesh)
Text(Text)
MText(MText)
Insert(Insert)
Hatch(Hatch)
Quad(Quad)
BlockRef(BlockRef)
Leader(Leader)
Wipeout(Wipeout)
Ray
RAY (from at) and XLINE (both ways)
Other
what this reader does not read (its kind in Common::kind): counted, not drawn
Trait Implementations§
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Forget for Kind
impl Freeze for Kindwhere
*const u8 is !null: Freeze,
PhantomData<f64>: Freeze,
PhantomData<[f64; 3]>: Freeze,
PhantomData<Vertex>: Freeze,
PhantomData<[i32; 4]>: Freeze,
PhantomData<u8>: Freeze,
*const MText is !null: Freeze,
PhantomData<MText>: Freeze,
PhantomData<Entity>: Freeze,
PhantomData<Path>: Freeze,
PhantomData<PatternLine>: Freeze,
PhantomData<Color>: Freeze,
PhantomData<[f64; 2]>: Freeze,
impl Move for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kindwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<[f64; 3]>: UnsafeUnpin,
PhantomData<Vertex>: UnsafeUnpin,
PhantomData<[i32; 4]>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const MText is !null: UnsafeUnpin,
PhantomData<MText>: UnsafeUnpin,
PhantomData<Entity>: UnsafeUnpin,
PhantomData<Path>: UnsafeUnpin,
PhantomData<PatternLine>: UnsafeUnpin,
PhantomData<Color>: UnsafeUnpin,
PhantomData<[f64; 2]>: UnsafeUnpin,
impl UnwindSafe for Kind
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