pub struct DimensionDrawing {
pub id: String,
pub kind: String,
pub text: String,
pub value: f64,
pub lines: Vec<Vec<[f64; 2]>>,
pub texts: Vec<SheetText>,
pub label: [f64; 2],
pub offset_mm: f64,
pub tolerance_from: String,
pub error: String,
}Expand description
One sheet dimension, laid out in paper millimetres — the sibling of
crate::sheets::project::AnnotationDrawing, drawn in its own group by
both writers.
Fields§
§id: String§kind: String§text: StringThe kernel-formatted value string, in MODEL units — never divided by the sheet scale, exactly as a placed annotation’s is.
value: f64The measured value in model units (NaN when the dimension did not
resolve).
lines: Vec<Vec<[f64; 2]>>§texts: Vec<SheetText>§label: [f64; 2]Where the value sits — the point the offset drag grabs, and where an UNRESOLVED dimension’s reason is written.
offset_mm: f64§tolerance_from: StringThe PMI dimension whose tolerance block the value is written with —
empty unless the dimension carries none of its own and its anchors are
the points a PMI dimension of the placement’s view measures (see
inherited).
error: StringEmpty when the dimension resolved; why it did not otherwise. A dimension with an error is drawn in the unresolved style rather than dropped.
Trait Implementations§
Source§impl Clone for DimensionDrawing
impl Clone for DimensionDrawing
Source§impl Debug for DimensionDrawing
impl Debug for DimensionDrawing
Source§impl PartialEq for DimensionDrawing
impl PartialEq for DimensionDrawing
Source§impl Serialize for DimensionDrawing
impl Serialize for DimensionDrawing
impl StructuralPartialEq for DimensionDrawing
Auto Trait Implementations§
impl Freeze for DimensionDrawing
impl RefUnwindSafe for DimensionDrawing
impl Send for DimensionDrawing
impl Sync for DimensionDrawing
impl Unpin for DimensionDrawing
impl UnsafeUnpin for DimensionDrawing
impl UnwindSafe for DimensionDrawing
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
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> ⓘ
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