pub enum Shape {
Box {
size: [f64; 3],
},
Cylinder {
radius: f64,
length: f64,
},
Segment {
to: [f64; 3],
width: f64,
},
}Variants§
Box
Box centred on pos.
Cylinder
Cylinder centred on pos, axis along y (pulleys and motors seen from the front), or along z where the part is
laid flat (Part::flat).
Segment
Straight strip from pos to to (a belt span).
Trait Implementations§
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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