pub struct DetailCircle {
pub source: String,
pub centre: String,
pub rim: String,
pub label: String,
}Expand description
The circle of a detail view, as it was PICKED: two anchors of an existing placement’s projection — the circle’s centre and a point on its rim.
Anchors rather than a paper centre and a radius in millimetres, for the
section’s reason: a paper point is not a property of the model, and the
two anchors are what keeps the circle on the feature it was drawn round
through a camera, scale, placement or model change. They also give the
circle keyed hit rects (sheet/anchor:<reference>), so a script picks one
exactly as a user does.
Fields§
§source: StringThe placement the circle is drawn ON. The detail looks through that placement’s camera; only the scale and the clip are its own.
centre: StringThe anchor at the circle’s centre.
rim: StringAn anchor ON the circle: its distance from the centre, measured on the source’s paper and divided by the source’s scale, is the radius in model units.
label: StringThe detail’s letter — beside the circle on the source and in this
view’s own DETAIL B caption. Handed out from the SAME run of letters
as a section’s (Sheet::next_view_letter).
Trait Implementations§
Source§impl Clone for DetailCircle
impl Clone for DetailCircle
Source§impl Debug for DetailCircle
impl Debug for DetailCircle
Source§impl<'de> Deserialize<'de> for DetailCircle
impl<'de> Deserialize<'de> for DetailCircle
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>,
Source§impl PartialEq for DetailCircle
impl PartialEq for DetailCircle
Source§impl Serialize for DetailCircle
impl Serialize for DetailCircle
impl StructuralPartialEq for DetailCircle
Auto Trait Implementations§
impl Freeze for DetailCircle
impl RefUnwindSafe for DetailCircle
impl Send for DetailCircle
impl Sync for DetailCircle
impl Unpin for DetailCircle
impl UnsafeUnpin for DetailCircle
impl UnwindSafe for DetailCircle
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,
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