pub struct GpuNeighborhoodReadback { /* private fields */ }Expand description
CPU rows from an explicit readback, with radius-overflow information kept separate from stored neighbors. Complete access rejects any incomplete row.
Implementations§
Source§impl GpuNeighborhoodReadback
impl GpuNeighborhoodReadback
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
True if every radius match fit its row (always true for nearest-k).
Sourcepub fn total_counts(&self) -> &[u32]
pub fn total_counts(&self) -> &[u32]
Exact radius match counts, or selected counts for nearest-k.
Sourcepub fn truncated_rows(&self) -> &[Vec<Neighbor>]
pub fn truncated_rows(&self) -> &[Vec<Neighbor>]
Explicit bounded row access, allowing radius truncation. This is a traversal prefix, not necessarily the closest points inside the radius.
Sourcepub fn complete_rows(&self) -> SpatialResult<&[Vec<Neighbor>]>
pub fn complete_rows(&self) -> SpatialResult<&[Vec<Neighbor>]>
Complete rows, or an error identifying the first overflowed radius row.
Sourcepub fn into_complete_rows(self) -> SpatialResult<Vec<Vec<Neighbor>>>
pub fn into_complete_rows(self) -> SpatialResult<Vec<Vec<Neighbor>>>
Consumes this readback, rejecting radius overflow before returning rows.
Sourcepub const fn transfers(&self) -> TransferStats
pub const fn transfers(&self) -> TransferStats
Payload bytes transferred during this explicit readback.
Auto Trait Implementations§
impl Freeze for GpuNeighborhoodReadback
impl RefUnwindSafe for GpuNeighborhoodReadback
impl Send for GpuNeighborhoodReadback
impl Sync for GpuNeighborhoodReadback
impl Unpin for GpuNeighborhoodReadback
impl UnsafeUnpin for GpuNeighborhoodReadback
impl UnwindSafe for GpuNeighborhoodReadback
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