pub struct Dimension<'m> { /* private fields */ }Expand description
A dimension (DIMENSIONAL_SIZE / _LOCATION / ANGULAR_SIZE /
ANGULAR_LOCATION) — its kind, name, and nominal value.
Implementations§
Source§impl<'m> Dimension<'m>
impl<'m> Dimension<'m>
Sourcepub fn kind(&self) -> DimensionKind
pub fn kind(&self) -> DimensionKind
What this dimension measures.
Sourcepub fn key(&self) -> EntityKey
pub fn key(&self) -> EntityKey
This dimension’s global identity (a Copy key for maps / deduplication).
Sourcepub fn value(&self) -> Option<f64>
pub fn value(&self) -> Option<f64>
The nominal value (reverse: a DIMENSIONAL_CHARACTERISTIC_REPRESENTATION
referencing this dimension → its SHAPE_DIMENSION_REPRESENTATION’s first
MEASURE_REPRESENTATION_ITEM).
The number is raw: interpret its unit via kind
(Size/Location are lengths, Angular* are angles) and
Scene::units, exactly as point coordinates are read. A representation
the walk cannot resolve (a complex one) is reported via
Scene::warnings; a dimension with no value
representation simply yields None.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Dimension<'m>
impl<'m> RefUnwindSafe for Dimension<'m>
impl<'m> Send for Dimension<'m>
impl<'m> Sync for Dimension<'m>
impl<'m> Unpin for Dimension<'m>
impl<'m> UnsafeUnpin for Dimension<'m>
impl<'m> UnwindSafe for Dimension<'m>
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