pub struct AnnotationDrawing {
pub id: String,
pub kind: String,
pub text: String,
pub lines: Vec<Vec<[f64; 2]>>,
pub texts: Vec<SheetText>,
pub note: String,
}Expand description
One annotation, laid out at sheet scale.
Fields§
§id: String§kind: String§text: StringThe kernel-formatted value — in MODEL units, never divided by the
sheet scale: a 10 mm feature drawn at 2:1 still reads 10.000.
lines: Vec<Vec<[f64; 2]>>Dimension / extension / leader lines, arrowhead outlines and frames.
texts: Vec<SheetText>§note: StringWhat the projection has to say about this row, empty when it has
nothing: an annotation plane EDGE-ON to the view projects to a LINE,
so the row’s geometry is a line and — with flattenText off — its
text falls on that line. Said out loud rather than dropped, which is
what the first sheets slice did with every non-parallel plane.
Trait Implementations§
Source§impl Clone for AnnotationDrawing
impl Clone for AnnotationDrawing
Source§impl Debug for AnnotationDrawing
impl Debug for AnnotationDrawing
Source§impl PartialEq for AnnotationDrawing
impl PartialEq for AnnotationDrawing
Source§impl Serialize for AnnotationDrawing
impl Serialize for AnnotationDrawing
impl StructuralPartialEq for AnnotationDrawing
Auto Trait Implementations§
impl Freeze for AnnotationDrawing
impl RefUnwindSafe for AnnotationDrawing
impl Send for AnnotationDrawing
impl Sync for AnnotationDrawing
impl Unpin for AnnotationDrawing
impl UnsafeUnpin for AnnotationDrawing
impl UnwindSafe for AnnotationDrawing
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