pub struct Dimension {
pub name: String,
pub values: Vec<f64>,
pub kind: MeasureKind,
pub plus: Option<f64>,
pub minus: Option<f64>,
pub features: Vec<Vec<TShapeId>>,
pub location: bool,
}Expand description
A dimensional characteristic: a size or a location, with its values.
Fields§
§name: StringWhat the file calls it: diameter, linear distance, …
values: Vec<f64>The stated values: one for a plain dimension, several when the file states a value with explicit bounds.
kind: MeasureKindLength or angle.
plus: Option<f64>The upper allowance, when a plus/minus tolerance applies.
minus: Option<f64>The lower allowance (typically negative) when one applies.
features: Vec<Vec<TShapeId>>The topology the dimension measures, one group per feature: a size has one group, a location has one per end.
location: boolWhether the dimension runs between two features (a location) rather than sizing one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnsafeUnpin for Dimension
impl UnwindSafe for Dimension
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<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.