pub struct QueryScratch { /* private fields */ }Expand description
The buffers one overlap query works in, owned by whoever runs the query.
OverlapQueries::overlap_sphere_into takes &self, so it cannot reach
the world’s own buffers — several threads running queries at once would be
writing the same ones. One of these per thread is what replaces them, and it
is reused across calls exactly as the world’s are: the contents are cleared
on entry and mean nothing between calls, so a scratch buffer never changes
an answer, only what a query has to allocate to reach it.
Implementations§
Source§impl QueryScratch
impl QueryScratch
Trait Implementations§
Source§impl Debug for QueryScratch
impl Debug for QueryScratch
Auto Trait Implementations§
impl Forget for QueryScratch
impl Freeze for QueryScratch
impl Move for QueryScratch
impl RefUnwindSafe for QueryScratch
impl Send for QueryScratch
impl Sync for QueryScratch
impl Unpin for QueryScratch
impl UnsafeUnpin for QueryScratch
impl UnwindSafe for QueryScratch
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