pub struct ReticleImportReport {
pub drawing_elements_dropped: usize,
pub dropped_element_tags: Vec<(String, usize)>,
pub canvas_mil: Option<(f64, f64)>,
pub zero_in_canvas_mil: Option<(f64, f64)>,
}Expand description
What an import left behind, so the hold/decoration rule is countable rather than implicit. See the module documentation for why the drawing is dropped.
Fields§
§drawing_elements_dropped: usizeHow many drawing tags were walked past — the sum of Self::dropped_element_tags.
This counts tags, not shapes: a filled reticle-path contributes itself plus one
per reticle-path-move-to / reticle-path-line-to vertex, because that is what the
document literally contains.
Per-tag counts of that drawing, sorted by tag name so the report is deterministic.
canvas_mil: Option<(f64, f64)>The document’s declared canvas extent as (size-x, size-y) in milliradians, when
the root declares both. Rendering metadata — see the module documentation.
zero_in_canvas_mil: Option<(f64, f64)>Where the zero sits inside that canvas, as (zero-x, zero-y) in milliradians from
the canvas top-left, when the root declares both. Rendering metadata: it does NOT
offset the imported marks.
Trait Implementations§
Source§impl Clone for ReticleImportReport
impl Clone for ReticleImportReport
Source§impl Debug for ReticleImportReport
impl Debug for ReticleImportReport
Source§impl Default for ReticleImportReport
impl Default for ReticleImportReport
Source§impl PartialEq for ReticleImportReport
impl PartialEq for ReticleImportReport
impl StructuralPartialEq for ReticleImportReport
Auto Trait Implementations§
impl Freeze for ReticleImportReport
impl RefUnwindSafe for ReticleImportReport
impl Send for ReticleImportReport
impl Sync for ReticleImportReport
impl Unpin for ReticleImportReport
impl UnsafeUnpin for ReticleImportReport
impl UnwindSafe for ReticleImportReport
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> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.