pub struct AssemblyMate {
pub id: Option<String>,
pub body_a: usize,
pub body_b: usize,
pub body_c: Option<usize>,
pub kind: MateKind,
}Expand description
One mate between two distinct bodies of the assembly.
Fields§
§id: Option<String>Optional display name; defaults to mate[i] in reports.
body_a: usizeIndex into the bodies slice owning the *_a geometry.
body_b: usizeIndex into the bodies slice owning the *_b geometry.
body_c: Option<usize>Index of a THIRD body owning *_c geometry (the mirror plane of a
symmetric mate); None for every two-body mate.
kind: MateKindTrait Implementations§
Source§impl Clone for AssemblyMate
impl Clone for AssemblyMate
Source§impl Debug for AssemblyMate
impl Debug for AssemblyMate
Source§impl<'de> Deserialize<'de> for AssemblyMate
impl<'de> Deserialize<'de> for AssemblyMate
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
Auto Trait Implementations§
impl !Freeze for AssemblyMate
impl !RefUnwindSafe for AssemblyMate
impl !Sync for AssemblyMate
impl Send for AssemblyMate
impl Unpin for AssemblyMate
impl UnsafeUnpin for AssemblyMate
impl UnwindSafe for AssemblyMate
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