pub enum PortRefField {
Point,
Direction,
}Expand description
Which of a connection point’s two reference fields a pick is filling.
They are two different questions about the same seat — WHERE it sits and WHICH WAY it faces — so they admit different picks: a vertex locates a point and implies no direction, which is why it is offered to one and not the other.
Variants§
Point
pointRef — the geometry the point sits on.
Direction
directionRef — the geometry it faces along.
Implementations§
Source§impl PortRefField
impl PortRefField
Sourcepub fn filter(self) -> Vec<String>
pub fn filter(self) -> Vec<String>
Which pick kinds this field admits. A VERTEX seats a position and
implies no direction, so it is offered to pointRef alone; SOLID is
offered to neither, because a click meant for a face that landed on the
body instead would seat the point at the body’s centre, which is never
what the click meant.
Trait Implementations§
Source§impl Clone for PortRefField
impl Clone for PortRefField
impl Copy for PortRefField
Source§impl Debug for PortRefField
impl Debug for PortRefField
impl Eq for PortRefField
Source§impl PartialEq for PortRefField
impl PartialEq for PortRefField
impl StructuralPartialEq for PortRefField
Auto Trait Implementations§
impl Freeze for PortRefField
impl RefUnwindSafe for PortRefField
impl Send for PortRefField
impl Sync for PortRefField
impl Unpin for PortRefField
impl UnsafeUnpin for PortRefField
impl UnwindSafe for PortRefField
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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 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> ⓘ
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