pub struct Body<'a> {
pub name: String,
pub free: bool,
pub carrier: Option<usize>,
pub world: Pose,
pub part: Reader<'a>,
pub file: String,
}Expand description
A rigid body of the mechanism: a part placed in the assembly, however deep.
Fields§
§name: StringIts name in the assembly: hinge/pin.
free: boolWhether the mates may move it: it has a pose of its own to solve for, and no fixed mate holds it.
carrier: Option<usize>The body it is carried by, by index: for a copy of a pattern, the part it copies — it goes where the pattern puts it after that part, and moves with it as one.
world: PoseWhere it is in the assembly.
part: Reader<'a>Its part, as placed.
file: StringThe file its part is placed from.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Body<'a>
impl<'a> !Send for Body<'a>
impl<'a> !Sync for Body<'a>
impl<'a> !UnwindSafe for Body<'a>
impl<'a> Freeze for Body<'a>
impl<'a> Unpin for Body<'a>
impl<'a> UnsafeUnpin for Body<'a>
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