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§fn clone(&self) -> AssemblyMate
fn clone(&self) -> AssemblyMate
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 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<AssemblyMate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssemblyMate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AssemblyMate
impl Serialize for AssemblyMate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !Freeze for AssemblyMate
impl !RefUnwindSafe for AssemblyMate
impl !Sync for AssemblyMate
impl Forget for AssemblyMate
impl Move 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