Skip to main content

Plan

Struct Plan 

Source
pub struct Plan {
Show 32 fields pub migrated: Vec<Migrated>, pub ids: BTreeMap<String, String>, pub recognition_corrections: Vec<Applied>, pub schema: String, pub binding: Binding, pub analysis_sha256: Option<String>, pub feature_dispositions: Vec<FeatureDisposition>, pub status: Status, pub completeness: Completeness, pub sheet: PlannedSheet, pub sheets: Vec<PlannedSheet>, pub sheet_candidates: Vec<Candidate>, pub table_outcome: TableOutcome, pub views: Vec<PlannedView>, pub captions: Vec<PlannedCaption>, pub dimensions: Vec<PlannedDimension>, pub omitted: Vec<Omitted>, pub notes: Vec<PlannedNote>, pub notes_block: Option<NotesBlock>, pub radius_notes_block: Option<NotesBlock>, pub radius_table: Option<RadiusTable>, pub tables: Vec<PlannedTable>, pub gdt: Vec<PlannedGdt>, pub requirements: Vec<PlannedRequirement>, pub process: Option<Resolved>, pub hole_table: Option<HoleTable>, pub hole_tables: Vec<HoleTable>, pub balloons: Vec<Balloon>, pub characteristics: Vec<Characteristic>, pub inspection_balloons: Vec<Balloon>, pub problems: Vec<Problem>, pub spec: Spec, /* private fields */
}
Expand description

What the sheet will say.

Fields§

§migrated: Vec<Migrated>§ids: BTreeMap<String, String>§recognition_corrections: Vec<Applied>

Authored recognition changes, including suppression with no resulting annotation.

§schema: String§binding: Binding§analysis_sha256: Option<String>

Digest of the complete Analysis, including the supplied recognition, that determined this plan. Absent only in older saved plans. The Spec is embedded separately.

§feature_dispositions: Vec<FeatureDisposition>

Per-occurrence policy for recognised evidence without a dimension owner. Informational; unsupported manufacturing requirements retain their independent warnings.

§status: Status§completeness: Completeness§sheet: PlannedSheet§sheets: Vec<PlannedSheet>§sheet_candidates: Vec<Candidate>

Ordered automatic paper trials, including cheap footprint refusals.

§table_outcome: TableOutcome

Escalation evidence for allocation; never inferred from a problem sentence.

§views: Vec<PlannedView>§captions: Vec<PlannedCaption>

Required late sheet furniture, reserved before the notes and tables.

§dimensions: Vec<PlannedDimension>

Dimensions and callouts, each with its ID, value, label, default flag and basis.

§omitted: Vec<Omitted>

Dimensions the spec leaves out, and why (ADR4-8: an authored omission says so).

§notes: Vec<PlannedNote>

General notes, each with its ID, text, rows, default flag, basis and place.

§notes_block: Option<NotesBlock>

The block the notes are drawn in, when it has a place.

§radius_notes_block: Option<NotesBlock>

A separate compact radius block when authored/PMI notes keep their ruled table.

§radius_table: Option<RadiusTable>

Obstructed radius groups, located by every occurrence’s centre in its named view.

§tables: Vec<PlannedTable>

Corner-block tables, each with its ID, cells, default flag, basis and place.

§gdt: Vec<PlannedGdt>

The part’s AP242 geometric tolerances and datums as feature control frames and datum feature symbols, each with its ID, view, compartments, basis and place (crate::dims::gdt).

§requirements: Vec<PlannedRequirement>

The part’s drawing-wide AP242 requirements (general tolerance, default surface finish, edge conditions), each with what carries it (crate::pmi_lowering::plan_sheet).

§process: Option<Resolved>§hole_table: Option<HoleTable>

The plan-view hole table a dropped hole item escalated to (crate::hole_table).

§hole_tables: Vec<HoleTable>

Hole schedules chosen for legibility, one per end-on principal view.

§balloons: Vec<Balloon>

The balloons beside the plan view: the hole table’s rows’ and dropped patterns’.

§characteristics: Vec<Characteristic>

File-owned characteristic numbers and their resolved drawing carriers.

§inspection_balloons: Vec<Balloon>§problems: Vec<Problem>§spec: Spec

The spec the plan was made from, embedded in every output.

Implementations§

Source§

impl Plan

Source

pub fn automatic_dimension_label(&self, id: &str) -> Option<(&str, [f64; 2])>

A linear dimension’s canonical label position in paper mm. Planning metadata only.

Source

pub fn canonical_callout_width(&self, view: &str) -> Option<f64>

Widest canonical callout in a view, in paper mm. None for a view without callouts or a deserialised Plan: this metadata is retained only by planning.

Source

pub fn automatic_callout_tip(&self, id: &str) -> Option<(&str, [f64; 2])>

A callout’s automatic leader tip (view, [x, y]) in paper mm, from which a pinned place.offset is measured. None for a non-callout, one with no automatic placement, or a deserialised Plan: this metadata is retained only by planning.

Trait Implementations§

Source§

impl Clone for Plan

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Plan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Plan

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Plan

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Forget for Plan

§

impl Freeze for Plan

§

impl Move for Plan

§

impl RefUnwindSafe for Plan

§

impl Send for Plan

§

impl Sync for Plan

§

impl Unpin for Plan

§

impl UnsafeUnpin for Plan

§

impl UnwindSafe for Plan

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.