pub struct Not<A>(pub A);Expand description
Complement: inside iff the inner region is NOT inside. Signed distance is negated.
Tuple Fields§
§0: ATrait Implementations§
impl<A: Copy> Copy for Not<A>
Source§impl<A: Region> Region for Not<A>
impl<A: Region> Region for Not<A>
Source§fn contains(&self, x: &[F; 3]) -> bool
fn contains(&self, x: &[F; 3]) -> bool
Membership test. Must be consistent with
signed_distance(x) <= 0.Source§fn bounding_box(&self) -> Option<Aabb>
fn bounding_box(&self) -> Option<Aabb>
Axis-aligned bounding box of the region. Used as an initialization
hint; default
None is always safe.Auto Trait Implementations§
impl<A> Freeze for Not<A>where
A: Freeze,
impl<A> RefUnwindSafe for Not<A>where
A: RefUnwindSafe,
impl<A> Send for Not<A>where
A: Send,
impl<A> Sync for Not<A>where
A: Sync,
impl<A> Unpin for Not<A>where
A: Unpin,
impl<A> UnsafeUnpin for Not<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Not<A>where
A: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R> RegionExt for Rwhere
R: Region,
impl<R> RegionExt for Rwhere
R: Region,
fn and<B: Region>(self, other: B) -> And<Self, B>
fn or<B: Region>(self, other: B) -> Or<Self, B>
fn not(self) -> Not<Self>
Source§fn into_restraint(self) -> RegionRestraint<Self>
fn into_restraint(self) -> RegionRestraint<Self>
Lift this region into a soft-penalty
AtomRestraint. Equivalent
to wrapping in RegionRestraint manually.