pub struct NoIndex;Expand description
An index that holds nothing, for a model whose agents never look at one another.
Trait Implementations§
Source§impl NeighborIndex for NoIndex
impl NeighborIndex for NoIndex
Source§fn new(_extent: Extent, _cell_size: f32) -> Self
fn new(_extent: Extent, _cell_size: f32) -> Self
Creates an empty index over
extent, with cells cell_size wide.Source§fn rebuild(&mut self, _pos_x: &[f32], _pos_y: &[f32], _cell_size: f32)
fn rebuild(&mut self, _pos_x: &[f32], _pos_y: &[f32], _cell_size: f32)
Rebuilds the index from agent positions, with cells
cell_size wide.Source§fn heap_bytes(&self) -> usize
fn heap_bytes(&self) -> usize
Heap memory held by the index, in bytes.
Auto Trait Implementations§
impl Freeze for NoIndex
impl RefUnwindSafe for NoIndex
impl Send for NoIndex
impl Sync for NoIndex
impl Unpin for NoIndex
impl UnsafeUnpin for NoIndex
impl UnwindSafe for NoIndex
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