Skip to main content

Feature

Struct Feature 

Source
pub struct Feature<'m> { /* private fields */ }
Expand description

A shape feature (SHAPE_ASPECT and its subtypes) that a dimension or tolerance applies to — its name, description, and identity.

Every entity here is a SHAPE_ASPECT subtype in the schema (that is why the same set forms both applies_to and toleranced_shape_aspect targets), so a Feature can be a plain aspect, a datum feature, a composite/derived aspect, or occasionally a datum / tolerance-zone construct. key reveals the exact kind when it matters.

Implementations§

Source§

impl<'m> Feature<'m>

Source

pub fn kind(&self) -> FeatureKind

The concrete kind backing this feature.

Source

pub fn name(&self) -> &'m str

The feature’s name.

Source

pub fn description(&self) -> Option<&'m str>

The feature’s description, if any.

Source

pub fn key(&self) -> EntityKey

This feature’s global identity (a Copy key for maps / dedup).

Source§

impl<'m> Feature<'m>

Source

pub fn geometry(&self) -> Vec<FeatureGeometry<'m>>

The concrete geometry this feature designates — the faces / edges / points / solids linked to it by GEOMETRIC_ITEM_SPECIFIC_USAGE (GISU).

A feature may designate several items (one per GISU). Items outside the typed set (curves, tessellated faces, …) come back as FeatureGeometry::Other with their key. Only GISUs whose definition points directly at this feature are followed; indirect links through a shape-aspect relationship are not yet resolved.

Trait Implementations§

Source§

impl<'m> Clone for Feature<'m>

Source§

fn clone(&self) -> Feature<'m>

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<'m> Copy for Feature<'m>

Auto Trait Implementations§

§

impl<'m> Freeze for Feature<'m>

§

impl<'m> RefUnwindSafe for Feature<'m>

§

impl<'m> Send for Feature<'m>

§

impl<'m> Sync for Feature<'m>

§

impl<'m> Unpin for Feature<'m>

§

impl<'m> UnsafeUnpin for Feature<'m>

§

impl<'m> UnwindSafe for Feature<'m>

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> 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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.