pub struct DetailDrawing {
pub label: String,
pub centre: [f64; 2],
pub radius_mm: f64,
pub circle: Vec<[f64; 2]>,
pub texts: Vec<SheetText>,
}Expand description
A detail placement’s own marks: the circle its drawing is clipped to and
the DETAIL B / SCALE 4:1 caption under it.
The model lines are not here — they are in ViewDrawing::edges, already
clipped to Self::circle.
Fields§
§label: String§centre: [f64; 2]The circle’s centre on the paper — the placement’s own position.
radius_mm: f64The circle’s radius on the paper: the model radius at this placement’s scale.
circle: Vec<[f64; 2]>The boundary, as a closed polyline.
texts: Vec<SheetText>The caption: the letter, then the detail’s own scale.
Trait Implementations§
Source§impl Clone for DetailDrawing
impl Clone for DetailDrawing
Source§impl Debug for DetailDrawing
impl Debug for DetailDrawing
Source§impl PartialEq for DetailDrawing
impl PartialEq for DetailDrawing
Source§impl Serialize for DetailDrawing
impl Serialize for DetailDrawing
impl StructuralPartialEq for DetailDrawing
Auto Trait Implementations§
impl Freeze for DetailDrawing
impl RefUnwindSafe for DetailDrawing
impl Send for DetailDrawing
impl Sync for DetailDrawing
impl Unpin for DetailDrawing
impl UnsafeUnpin for DetailDrawing
impl UnwindSafe for DetailDrawing
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> 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