pub struct ContainmentRequest { /* private fields */ }Expand description
Asks whether a clearance volume’s plan footprint lies inside the union of
the plan footprints of scopes, such as the spaces a component stands in.
Only the plan is compared: the volume’s height is carried so the request names the same volume a clearance request does, not to compare it with the scopes’ heights. The scopes are the rule’s selection, sorted and deduplicated; with none, nothing covers the footprint.
Implementations§
Source§impl ContainmentRequest
impl ContainmentRequest
pub fn new( frame: MetricFrame, shape: ClearanceShape, scopes: Vec<ObjectId>, ) -> Self
pub fn frame(&self) -> &MetricFrame
pub fn shape(&self) -> ClearanceShape
pub fn scopes(&self) -> &[ObjectId]
Trait Implementations§
Source§impl Clone for ContainmentRequest
impl Clone for ContainmentRequest
Source§impl Debug for ContainmentRequest
impl Debug for ContainmentRequest
Source§impl PartialEq for ContainmentRequest
impl PartialEq for ContainmentRequest
impl StructuralPartialEq for ContainmentRequest
Auto Trait Implementations§
impl Freeze for ContainmentRequest
impl RefUnwindSafe for ContainmentRequest
impl Send for ContainmentRequest
impl Sync for ContainmentRequest
impl Unpin for ContainmentRequest
impl UnsafeUnpin for ContainmentRequest
impl UnwindSafe for ContainmentRequest
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