Struct broccoli::container::TreeOwned [−][src]
#[repr(C)]pub struct TreeOwned<T: Aabb> { /* fields omitted */ }
Expand description
An owned version of Tree
An owned (Rect<N>,T)
example
use broccoli::{node::BBox,bbox,rect,container::*}; fn not_lifetimed()->TreeOwned<BBox<i32,f32>> { let a=vec![bbox(rect(0,10,0,10),0.0)].into_boxed_slice(); TreeOwned::new(a) } let mut tree = not_lifetimed(); let mut pairs = tree.as_tree_mut().find_colliding_pairs_mut(|a,b|{});
Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for TreeOwned<T> where
T: RefUnwindSafe,
<T as Aabb>::Num: RefUnwindSafe,
impl<T> UnwindSafe for TreeOwned<T> where
T: RefUnwindSafe + UnwindSafe,
<T as Aabb>::Num: UnwindSafe,