Skip to main content

ProfileRef

Enum ProfileRef 

Source
pub enum ProfileRef {
    Unresolved(String),
    Native(String),
    Sketch(SketchId),
    SketchProfiles {
        sketch: SketchId,
        profiles: Vec<u32>,
    },
    SketchRegions {
        sketch: SketchId,
        regions: Vec<SketchProfileRegion>,
    },
    SketchSelection {
        sketch: SketchId,
        selections: Vec<String>,
    },
    SpatialSketchProfiles {
        sketch: SpatialSketchId,
        profiles: Vec<u32>,
    },
    SpatialSketchSelection {
        sketch: SpatialSketchId,
        selections: Vec<String>,
    },
    HistoricalFaces {
        state: FeatureInputTopologyId,
        faces: Vec<HistoricalFaceId>,
        native: Vec<String>,
    },
    Feature(FeatureId),
    Generated {
        curves: Vec<GeneratedCurveRef>,
        native: String,
    },
    Faces(Vec<FaceId>),
}
Expand description

Profile consumed by a profile-driven feature.

Variants§

§

Unresolved(String)

A profile is required by the identified native owner but its carrier is unresolved.

§

Native(String)

Opaque reference into a native feature-input record; no neutral geometry given.

§

Sketch(SketchId)

Solved neutral sketch profile.

§

SketchProfiles

Specific solved profile loops within one neutral sketch.

Fields

§sketch: SketchId

Sketch containing the selected loops.

§profiles: Vec<u32>

Zero-based indices into crate::sketches::Sketch::profiles.

§

SketchRegions

Exact union of bounded atomic regions within one neutral sketch.

Fields

§sketch: SketchId

Sketch containing every referenced boundary loop.

§regions: Vec<SketchProfileRegion>

Connected regions in source selection order.

§

SketchSelection

Source-native selection within a known neutral sketch.

Fields

§sketch: SketchId

Sketch containing the unresolved selected geometry.

§selections: Vec<String>

Full-fidelity native selection records in source order.

§

SpatialSketchProfiles

Specific solved profile loops within one neutral spatial sketch.

Fields

§sketch: SpatialSketchId

Spatial sketch containing the selected loops.

§profiles: Vec<u32>
§

SpatialSketchSelection

Source-native selection within a known neutral spatial sketch.

Fields

§sketch: SpatialSketchId

Spatial sketch containing the unresolved selected geometry.

§selections: Vec<String>

Full-fidelity native selection records in source order.

§

HistoricalFaces

Profile given by faces in the consuming feature’s input topology.

Fields

§state: FeatureInputTopologyId

Input topology containing every selected face.

§faces: Vec<HistoricalFaceId>

State-local face identities in source selection order.

§native: Vec<String>

Full-fidelity source selection groups in source order.

§

Feature(FeatureId)

Complete curve result of an earlier construction-history feature.

§

Generated

Curves in an intermediate regenerated feature result, paired with the format-native persistent reference required for rewrite.

Fields

§curves: Vec<GeneratedCurveRef>

Persistent feature-local curve identities.

§native: String

Format-native persistent profile reference.

§

Faces(Vec<FaceId>)

Profile given directly as a set of solved B-rep faces.

Trait Implementations§

Source§

impl Clone for ProfileRef

Source§

fn clone(&self) -> ProfileRef

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 Debug for ProfileRef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ProfileRef

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for ProfileRef

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for ProfileRef

Source§

fn eq(&self, other: &ProfileRef) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ProfileRef

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ProfileRef

Auto Trait Implementations§

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> Same for T

Source§

type Output = T

Should always be Self
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.