pub enum Entity {
Show 14 variants
Line {
start: (f64, f64),
end: (f64, f64),
layer: String,
color: Option<String>,
line_weight: Option<f64>,
linetype: Option<String>,
},
Point {
pt: (f64, f64),
layer: String,
color: Option<String>,
},
Circle {
center: (f64, f64),
radius: f64,
layer: String,
color: Option<String>,
line_weight: Option<f64>,
linetype: Option<String>,
},
Arc {
center: (f64, f64),
radius: f64,
start_deg: f64,
end_deg: f64,
layer: String,
color: Option<String>,
line_weight: Option<f64>,
linetype: Option<String>,
},
Ellipse {
center: (f64, f64),
major_axis: (f64, f64),
axis_ratio: f64,
start_param: f64,
end_param: f64,
layer: String,
color: Option<String>,
line_weight: Option<f64>,
linetype: Option<String>,
},
LwPolyline {
vertices: Vec<LwVertex>,
is_closed: bool,
layer: String,
color: Option<String>,
line_weight: Option<f64>,
linetype: Option<String>,
},
Spline {
degree: usize,
control_points: Vec<(f64, f64)>,
knots: Vec<f64>,
is_closed: bool,
layer: String,
color: Option<String>,
line_weight: Option<f64>,
},
Solid {
points: [(f64, f64); 4],
layer: String,
color: Option<String>,
},
Text {
text: String,
insert: (f64, f64),
height: f64,
rotation_deg: f64,
layer: String,
color: Option<String>,
h_align: u8,
v_align: u8,
},
MText {
text: String,
insert: (f64, f64),
height: f64,
rotation_deg: f64,
layer: String,
color: Option<String>,
attachment: u8,
},
Insert {
block_name: String,
insert: (f64, f64),
scale: (f64, f64),
rotation_deg: f64,
layer: String,
color: Option<String>,
line_weight: Option<f64>,
},
Hatch {
boundaries: Vec<HatchBoundary>,
is_solid: bool,
pattern_name: String,
layer: String,
color: Option<String>,
},
Dimension {
block_name: Option<String>,
text: String,
insert: (f64, f64),
layer: String,
color: Option<String>,
},
Leader {
vertices: Vec<(f64, f64)>,
layer: String,
color: Option<String>,
},
}Variants§
Line
Fields
Point
Circle
Fields
Arc
Fields
Ellipse
Fields
LwPolyline
Fields
Spline
Fields
Solid
Text
Fields
MText
Fields
Insert
Fields
Hatch
Fields
§
boundaries: Vec<HatchBoundary>Dimension
Fields
Leader
Implementations§
Trait Implementations§
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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