pub struct Index<T> { /* private fields */ }Expand description
The index: items of type T filed under their box.
Implementations§
Source§impl<T> Index<T>
impl<T> Index<T>
Sourcepub fn needs_rebuild(&self) -> bool
pub fn needs_rebuild(&self) -> bool
The overflow has outgrown its share: more than OVERFLOW_FLOOR items
and more than a quarter of the tree.
Sourcepub fn insert(&mut self, rect: Rect, item: T)
pub fn insert(&mut self, rect: Rect, item: T)
Add an item. It is found by the very next query; the tree is packed
again when the overflow has outgrown its share (Self::needs_rebuild).
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Index<T>
impl<T> RefUnwindSafe for Index<T>
impl<T> Send for Index<T>
impl<T> Sync for Index<T>
impl<T> Unpin for Index<T>
impl<T> UnsafeUnpin for Index<T>
impl<T> UnwindSafe for Index<T>
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