pub struct OrdinateDrawing {
pub id: String,
pub axis: String,
pub lines: Vec<Vec<[f64; 2]>>,
pub texts: Vec<SheetText>,
pub label: [f64; 2],
pub offset_mm: f64,
pub stations: Vec<OrdinateMember>,
pub error: String,
}Expand description
One ordinate set, laid out in paper millimetres.
Fields§
§id: String§axis: String§lines: Vec<Vec<[f64; 2]>>Every station’s leader, and the datum’s origin circle.
texts: Vec<SheetText>§label: [f64; 2]The datum’s own value position — the point the baseline drag grabs, and where a set with no datum left writes its reason.
offset_mm: f64§stations: Vec<OrdinateMember>The datum and every member, in reading order.
error: StringEmpty when the set resolved; why the whole set did not otherwise — a lost DATUM, a member on another placement, a placement that did not project. A lost MEMBER is on its own station instead.
Implementations§
Trait Implementations§
Source§impl Clone for OrdinateDrawing
impl Clone for OrdinateDrawing
Source§impl Debug for OrdinateDrawing
impl Debug for OrdinateDrawing
Source§impl PartialEq for OrdinateDrawing
impl PartialEq for OrdinateDrawing
Source§impl Serialize for OrdinateDrawing
impl Serialize for OrdinateDrawing
impl StructuralPartialEq for OrdinateDrawing
Auto Trait Implementations§
impl Freeze for OrdinateDrawing
impl RefUnwindSafe for OrdinateDrawing
impl Send for OrdinateDrawing
impl Sync for OrdinateDrawing
impl Unpin for OrdinateDrawing
impl UnsafeUnpin for OrdinateDrawing
impl UnwindSafe for OrdinateDrawing
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