pub struct Tree<T> {
pub width: f32,
pub height: f32,
/* private fields */
}Fields§
§width: f32§height: f32Implementations§
Source§impl<T> Tree<T>where
T: Clone,
impl<T> Tree<T>where
T: Clone,
pub fn new(width: f32, height: f32) -> Tree<T>
pub fn insert_checked( &mut self, item: T, bbox: &BoundingBox<f32>, check: Option<&dyn Fn(&T, &T) -> bool>, ) -> bool
pub fn insert_unless_intersecting(
&mut self,
item: T,
bbox: &BoundingBox<f32>,
) -> boolwhere
T: Intersection,
pub fn insert(&mut self, item: T, bbox: &BoundingBox<f32>)
Auto Trait Implementations§
impl<T> Freeze for Tree<T>
impl<T> RefUnwindSafe for Tree<T>where
T: RefUnwindSafe,
impl<T> Send for Tree<T>where
T: Send,
impl<T> Sync for Tree<T>where
T: Sync,
impl<T> Unpin for Tree<T>where
T: Unpin,
impl<T> UnwindSafe for Tree<T>where
T: UnwindSafe,
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