Skip to main content

Feature

Struct Feature 

Source
pub struct Feature;
Expand description

What a step did by combining tools with a solid — a cut, a boss, a hole — as an element of the model: named by the step, and picked by a face it made (see FeatureFaces), lit as every face of it that is left. A feature of a part placed in the part is picked as one of that part, behind its instance.

Trait Implementations§

Source§

impl Kind for FeatureElement

Source§

const NAME: &'static str = "feature"

The kind’s name, as a pick says what it picked: "edge".
Source§

impl SelectableElement<NamedModel> for FeatureElement

Source§

const PICKED_FROM: &'static [&'static str]

The kinds of what an editor draws that a click picks one from (see crate::editing::hit::Scene::pick): its own kind, for an element drawn as itself.
Source§

fn select( reader: &Reader<'_>, hit: &PickedElement, ) -> Option<ElementReference<NamedModel, FeatureElement>>

The element a click on hit, of one of Self::PICKED_FROM, selects, read through reader: hit itself, for an element drawn as itself; none, for a hit that selects none.
Source§

fn drawn( reader: &Reader<'_>, feature: &ElementReference<NamedModel, FeatureElement>, ) -> Vec<PickedElement>

What an editor draws of element, to light while it is selected: the element itself, by default.

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> 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, 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.