pub enum PathRef {
Sketch(ElementReference<PlacedSketch, Path>),
Sketch3d(ElementReference<PlacedSketch3d, Path>),
Edge(ElementReference<NamedModel, Path>),
}Expand description
Curves a sweep runs along, a rail or a guide follows, or a pattern lays its instances along: a sketch’s or a 3-D sketch’s one chain of curves, or one loop, or an edge of a face.
Variants§
Sketch(ElementReference<PlacedSketch, Path>)
Sketch3d(ElementReference<PlacedSketch3d, Path>)
Edge(ElementReference<NamedModel, Path>)
Implementations§
Source§impl PathRef
impl PathRef
Sourcepub fn resolve(&self, reader: &Reader<'_>) -> __GeopResult<Chain<NurbCurve3D>>
pub fn resolve(&self, reader: &Reader<'_>) -> __GeopResult<Chain<NurbCurve3D>>
What it refers to, read through reader, of the part itself
(see geop_core_program::reader::Reader::retrieve_element).
Sourcepub fn resolve_placed(
&self,
reader: &Reader<'_>,
) -> __GeopResult<InInstance<Chain<NurbCurve3D>>>
pub fn resolve_placed( &self, reader: &Reader<'_>, ) -> __GeopResult<InInstance<Chain<NurbCurve3D>>>
What it refers to, of the part itself or of an instance
placed in it, as it is in its own part (see
geop_core_program::reader::Reader::retrieve_placed).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathRef
impl<'de> Deserialize<'de> for PathRef
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Selectable for PathRef
impl Selectable for PathRef
Source§fn picked_from() -> Vec<&'static str>
fn picked_from() -> Vec<&'static str>
The kinds of what an editor draws that a click picks one from.
Source§fn from_picked(picked: &PickedElement) -> Option<Self>
fn from_picked(picked: &PickedElement) -> Option<Self>
The value
picked names as Selectable::picked does: what a
field sent back held already.Source§fn picked(&self) -> PickedElement
fn picked(&self) -> PickedElement
The value as a pick names it: what the front end shows held.
Source§fn select(reader: &Reader<'_>, hit: &PickedElement) -> Option<Self>
fn select(reader: &Reader<'_>, hit: &PickedElement) -> Option<Self>
The value a click on
hit selects, read through reader: none, for
a hit that selects none.Source§fn drawn(&self, reader: &Reader<'_>) -> Vec<PickedElement>
fn drawn(&self, reader: &Reader<'_>) -> Vec<PickedElement>
What an editor draws of it, to light while it is held.
Source§fn visuals(&self, reader: &Reader<'_>) -> Vec<Visual>
fn visuals(&self, reader: &Reader<'_>) -> Vec<Visual>
What an editor draws of it besides lighting what it is picked from
(
Selectable::drawn), while it is held or a click would pick it:
nothing, for an element drawn as itself; a frame, as a triad along
its axes. In the world, as the part is drawn; styled by the editor
as held or as hovered.impl StructuralPartialEq for PathRef
Auto Trait Implementations§
impl Freeze for PathRef
impl RefUnwindSafe for PathRef
impl Send for PathRef
impl Sync for PathRef
impl Unpin for PathRef
impl UnsafeUnpin for PathRef
impl UnwindSafe for PathRef
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