pub enum PlacementShape {
Box {
shape: BoxClearance,
orientation: PlacementOrientation,
},
Cylinder(CylinderClearance),
}Expand description
A clearance shape together with the rotations a placement may use.
A box carries an explicit orientation so that a request cannot leave open which question it asks. A cylinder is rotation-invariant and carries none.
Variants§
Implementations§
Source§impl PlacementShape
impl PlacementShape
pub fn clearance(&self) -> ClearanceShape
pub fn orientation(&self) -> Option<&PlacementOrientation>
Trait Implementations§
Source§impl Clone for PlacementShape
impl Clone for PlacementShape
Source§impl Debug for PlacementShape
impl Debug for PlacementShape
Source§impl PartialEq for PlacementShape
impl PartialEq for PlacementShape
impl StructuralPartialEq for PlacementShape
Auto Trait Implementations§
impl Freeze for PlacementShape
impl RefUnwindSafe for PlacementShape
impl Send for PlacementShape
impl Sync for PlacementShape
impl Unpin for PlacementShape
impl UnsafeUnpin for PlacementShape
impl UnwindSafe for PlacementShape
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