Skip to main content

FeatureSpec

Struct FeatureSpec 

Source
pub struct FeatureSpec {
Show 17 fields pub gusset_view: Option<String>, pub modelled_thread: Option<Settings>, pub spring: Option<SpringDepiction>, pub callouts: Option<Settings>, pub anchor: Option<Anchor>, pub reclassify: Option<Kind>, pub suppress: bool, pub split: bool, pub pattern: Option<PatternSpec>, pub fit: Option<String>, pub datum: Option<String>, pub controls: Vec<ControlSpec>, pub finish: Option<FinishSpec>, pub thread: Option<ThreadSpec>, pub knurl: Option<KnurlSpec>, pub note: Option<String>, pub note_satisfies: Vec<String>,
}
Expand description

What the author decided of a feature.

Fields§

§gusset_view: Option<String>

View along either leg for gusset thickness, spacing/pitch and location.

§modelled_thread: Option<Settings>

Intent for a recognised physical thread; no geometry is authored here.

§spring: Option<SpringDepiction>

Recognised spring depiction; full retains its measured data and dimensions.

§callouts: Option<Settings>

Shared thread and knurl callout presentation.

§anchor: Option<Anchor>

Stable defining-face fingerprints, filled when a correction is saved.

§reclassify: Option<Kind>

Author’s geometric interpretation; uses the ordinary feature planners.

§suppress: bool

Remove a spurious recognition, including its feature requirements.

§split: bool

Dissolve a recognised hole or slot pattern, retaining its members; on a slot, dimension it on its own rather than in its congruent slots’ N× SLOT W × L callout.

§pattern: Option<PatternSpec>

Group existing holes under this stable, author-chosen pattern ID.

§fit: Option<String>

An ISO 286 fit class on a hole’s bore or a cylindrical boss’s diameter (H7, g6), printed after the diameter of the callout that states it.

§datum: Option<String>

A datum letter on the feature (ISO 5459’s symbol, draftwright’s Sheet.datum): on its cylinders’ common axis when it has cylinders, else on its faces (crate::spec_gdt).

§controls: Vec<ControlSpec>

Feature control frames on the feature (ISO 1101, draftwright’s Sheet.control), drawn as an AP242 tolerance on the same faces is (crate::spec_gdt).

§finish: Option<FinishSpec>

An ISO 1302 surface texture on the feature (draftwright’s finish), on its cylinders when it has cylinders, else on its faces (crate::spec_notes).

§thread: Option<ThreadSpec>

An ISO metric thread on a hole, hole pattern or turned step (draftwright’s thread), printed after its callout’s size (crate::spec_notes).

§knurl: Option<KnurlSpec>

A knurl on a turned step (draftwright’s knurl), printed after its diameter (crate::spec_notes).

§note: Option<String>

A note on a leader to the feature (draftwright’s note) (crate::spec_notes).

§note_satisfies: Vec<String>

Roles this placed feature note explicitly satisfies; never inferred from its prose.

Trait Implementations§

Source§

impl Clone for FeatureSpec

Source§

fn clone(&self) -> Self

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 FeatureSpec

Source§

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

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

impl Default for FeatureSpec

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for FeatureSpec

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 PartialEq for FeatureSpec

Source§

fn eq(&self, other: &Self) -> 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 FeatureSpec

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 FeatureSpec

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

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.