pub struct TargetRef {
pub solid: String,
pub face: Option<String>,
}Expand description
A stable reference to a BREP body or to one face of it.
face == None names the whole body. Resolution against a mesh snapshot
happens by name; an unresolvable reference is a reported error, never a
silently empty target.
Fields§
§solid: StringPersistent body (solid) name.
face: Option<String>Persistent face name within solid, or None for the whole body.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TargetRef
impl<'de> Deserialize<'de> for TargetRef
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
impl Eq for TargetRef
Source§impl Ord for TargetRef
impl Ord for TargetRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TargetRef
impl PartialOrd for TargetRef
impl StructuralPartialEq for TargetRef
Auto Trait Implementations§
impl Forget for TargetRef
impl Freeze for TargetRef
impl Move for TargetRef
impl RefUnwindSafe for TargetRef
impl Send for TargetRef
impl Sync for TargetRef
impl Unpin for TargetRef
impl UnsafeUnpin for TargetRef
impl UnwindSafe for TargetRef
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