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: boolRemove a spurious recognition, including its feature requirements.
split: boolDissolve 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
impl Clone for FeatureSpec
Source§impl Debug for FeatureSpec
impl Debug for FeatureSpec
Source§impl Default for FeatureSpec
impl Default for FeatureSpec
Source§impl<'de> Deserialize<'de> for FeatureSpecwhere
FeatureSpec: Default,
impl<'de> Deserialize<'de> for FeatureSpecwhere
FeatureSpec: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for FeatureSpec
impl PartialEq for FeatureSpec
Source§impl Serialize for FeatureSpec
impl Serialize for FeatureSpec
impl StructuralPartialEq for FeatureSpec
Auto Trait Implementations§
impl Forget for FeatureSpec
impl Freeze for FeatureSpec
impl Move for FeatureSpec
impl RefUnwindSafe for FeatureSpec
impl Send for FeatureSpec
impl Sync for FeatureSpec
impl Unpin for FeatureSpec
impl UnsafeUnpin for FeatureSpec
impl UnwindSafe for FeatureSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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