pub enum DatumTargetKind {
Point,
Line {
length: f64,
},
Rectangle {
length: f64,
width: f64,
},
Circle {
diameter: f64,
},
}Expand description
Where a datum is actually contacted: the target a fixture touches it at.
A datum plane on a casting is not contacted over its whole face (it rests
on three pads), and the drawing says so with targets: A1, A2, A3,
each a point, a line or an area of stated size. The distinction matters to
anything that inspects the part, because the datum it should establish is
the one the targets define and not the nominal surface.
Variants§
Point
A point contact.
Line
A line contact, of the stated length.
Rectangle
A rectangular area.
Circle
A circular area.
Trait Implementations§
Source§impl Clone for DatumTargetKind
impl Clone for DatumTargetKind
Source§fn clone(&self) -> DatumTargetKind
fn clone(&self) -> DatumTargetKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatumTargetKind
Source§impl Debug for DatumTargetKind
impl Debug for DatumTargetKind
Source§impl PartialEq for DatumTargetKind
impl PartialEq for DatumTargetKind
Source§fn eq(&self, other: &DatumTargetKind) -> bool
fn eq(&self, other: &DatumTargetKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DatumTargetKind
Auto Trait Implementations§
impl Freeze for DatumTargetKind
impl RefUnwindSafe for DatumTargetKind
impl Send for DatumTargetKind
impl Sync for DatumTargetKind
impl Unpin for DatumTargetKind
impl UnsafeUnpin for DatumTargetKind
impl UnwindSafe for DatumTargetKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.