pub struct Drawn {
pub name: String,
pub kind: Kind,
pub ink: [f64; 4],
pub label: Option<[f64; 4]>,
pub lines: Vec<[P; 2]>,
pub heads: Vec<[P; 2]>,
pub datum_triangle: Option<[P; 3]>,
pub elbow: Option<P>,
pub interior: bool,
}Expand description
A thing drawn on the sheet: its name, what it is, the box of all its ink, and the box of its
label’s text, if it has one (a dimension’s is the label’s ink box; the port draws every label
along or across the page, so the box is the text’s own). Its straight line-work is each line
it draws by its ends (draftwright’s segments: extension, dimension and leader lines, a
block’s rules; not its glyphs or arrowheads), and a callout’s leader its elbow, where the
shaft meets the shoulder.
Fields§
§name: String§kind: Kind§ink: [f64; 4][x0, y0, x1, y1], mm.
label: Option<[f64; 4]>§lines: Vec<[P; 2]>§heads: Vec<[P; 2]>Filled arrowhead outlines, kept separate from dimension-reading line grammar.
datum_triangle: Option<[P; 3]>Datum triangle as drawn: base end, apex, base end. Separate from shaft/frame ink.
elbow: Option<P>A callout’s shaft-to-shoulder bend. Datum symbols have no elbow: their shaft
ends on the frame border, recorded by lines and label.
interior: boolPlaced inside its view on purpose, clear of the view’s edges (draftwright’s interior
placement region), retained from the Plan’s proven candidate provenance.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Drawn
impl<'de> Deserialize<'de> for Drawn
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>,
impl StructuralPartialEq for Drawn
Auto Trait Implementations§
impl Forget for Drawn
impl Freeze for Drawn
impl Move for Drawn
impl RefUnwindSafe for Drawn
impl Send for Drawn
impl Sync for Drawn
impl Unpin for Drawn
impl UnsafeUnpin for Drawn
impl UnwindSafe for Drawn
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
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> ⓘ
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> ⓘ
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