pub struct QueryReport {
pub written: usize,
pub total: usize,
}Expand description
Counts returned by caller-buffer casts and direct overlap queries.
See PhysicsWorld::spherecast_into and PhysicsWorld::overlap_sphere_into.
Fields§
§written: usizeNumber of Some hits written to the start of the output slice.
total: usizeTotal accepted collider hits, including those that did not fit. Compound children count separately; this is not a unique-body count.
Implementations§
Source§impl QueryReport
impl QueryReport
Sourcepub const fn is_truncated(self) -> bool
pub const fn is_truncated(self) -> bool
Whether the output omitted any accepted hits. An exactly full buffer is not truncated if every hit fit; an empty buffer can be truncated.
Trait Implementations§
Source§impl Clone for QueryReport
impl Clone for QueryReport
Source§fn clone(&self) -> QueryReport
fn clone(&self) -> QueryReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryReport
impl Debug for QueryReport
Source§impl Default for QueryReport
impl Default for QueryReport
Source§fn default() -> QueryReport
fn default() -> QueryReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for QueryReport
impl PartialEq for QueryReport
impl Copy for QueryReport
impl Eq for QueryReport
impl StructuralPartialEq for QueryReport
Auto Trait Implementations§
impl Freeze for QueryReport
impl RefUnwindSafe for QueryReport
impl Send for QueryReport
impl Sync for QueryReport
impl Unpin for QueryReport
impl UnwindSafe for QueryReport
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