pub enum EdgeSelector {
NearestCorner(Point2),
Named(EdgeName),
}Expand description
Which edge a feature applies to.
Selecting by position rather than index keeps a caller’s request stable across a topology change that renumbers edges.
Variants§
NearestCorner(Point2)
The vertical edge at the profile corner nearest this point.
Named(EdgeName)
The edge carrying this persistent structural name.
Unlike Self::NearestCorner, this does not depend on the caller
knowing where the edge currently is. A name obtained from a previous
result still selects the same edge after the profile has been resized
or the solid rebuilt, which is what re-applying a feature requires.
Trait Implementations§
Source§impl Clone for EdgeSelector
impl Clone for EdgeSelector
Source§fn clone(&self) -> EdgeSelector
fn clone(&self) -> EdgeSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EdgeSelector
impl Debug for EdgeSelector
Source§impl PartialEq for EdgeSelector
impl PartialEq for EdgeSelector
impl StructuralPartialEq for EdgeSelector
Auto Trait Implementations§
impl Freeze for EdgeSelector
impl RefUnwindSafe for EdgeSelector
impl Send for EdgeSelector
impl Sync for EdgeSelector
impl Unpin for EdgeSelector
impl UnsafeUnpin for EdgeSelector
impl UnwindSafe for EdgeSelector
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
Mutably borrows from an owned value. Read more