pub enum RefSelectTarget {
Feature,
AssemblyConstraint,
SplineAnchor {
index: usize,
},
Pmi,
PortPoint {
field: PortRefField,
},
Sheet,
}Expand description
WHO a finished reference-selection commits to: a history FEATURE’s params
(the original widget) or an ASSEMBLY CONSTRAINT’s inputParams (same modal,
different commit lane — see assembly_ops::begin_ref_select_for_constraint).
Variants§
Feature
AssemblyConstraint
SplineAnchor
ONE SPLINE ANCHOR’s port attachment: path is unused, the picked name
must be a PORT feature id (a click on a port’s drawn sheet), and Finish
writes persistentData.spline.points[index].attachment (see
spline_edit.rs).
Pmi
A PMI annotation’s reference field: feature_id is the annotation id;
Finish writes the picked names into its params through the PMI block
(pmi_ops.rs). Vertex picks are {solid}@x,y,z in WORLD coordinates.
PortPoint
ONE CONNECTION POINT’s reference field: feature_id is the point’s
part-local ADDRESS (J1.VCC) — a connection point is data, not a
feature, so there is no id to carry — and path is the block key the
pick writes (pointRef / directionRef). Finish writes it through
ports_ops::ports_commit_ref, and NOTHING ROLLS: a point resolves at
the tail of the run, so the geometry it may name is what is on screen.
Fields
field: PortRefFieldSheet
A drawing-sheet object’s reference field — a dimension’s anchors, an
ordinate set’s datum or members, a section’s cutting line, a detail’s
centre or rim: feature_id is the object id, the picks are ANCHORS
clicked on the open sheet’s paper (sheet_ops.rs), and nothing rolls.
Trait Implementations§
Source§impl Clone for RefSelectTarget
impl Clone for RefSelectTarget
impl Copy for RefSelectTarget
Source§impl Debug for RefSelectTarget
impl Debug for RefSelectTarget
Source§impl Default for RefSelectTarget
impl Default for RefSelectTarget
impl Eq for RefSelectTarget
Source§impl PartialEq for RefSelectTarget
impl PartialEq for RefSelectTarget
impl StructuralPartialEq for RefSelectTarget
Auto Trait Implementations§
impl Freeze for RefSelectTarget
impl RefUnwindSafe for RefSelectTarget
impl Send for RefSelectTarget
impl Sync for RefSelectTarget
impl Unpin for RefSelectTarget
impl UnsafeUnpin for RefSelectTarget
impl UnwindSafe for RefSelectTarget
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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