[−][src]Struct broccoli::container::TreeIndOwned
An owned version of TreeInd
use axgeom::*; use broccoli::{*,container::*,node::*,prelude::*}; fn not_lifetimed()->TreeIndOwned<i32,BBox<i32,f32>> { let rect=vec![bbox(rect(0,10,0,10),0.0)].into_boxed_slice(); TreeIndOwned::new(rect,|b|{ b.rect }) } let mut tree=not_lifetimed(); let mut pairs = tree.as_tree_mut().collect_colliding_pairs(|a,b|Some(()));
Implementations
impl<N: Num + Send + Sync, T: Send + Sync> TreeIndOwned<N, T>
[src]
pub fn new_par(
mut bots: Box<[T]>,
joiner: impl Joinable,
func: impl FnMut(&mut T) -> Rect<N>
) -> TreeIndOwned<N, T>
[src]
mut bots: Box<[T]>,
joiner: impl Joinable,
func: impl FnMut(&mut T) -> Rect<N>
) -> TreeIndOwned<N, T>
impl<N: Num, T> TreeIndOwned<N, T>
[src]
impl<N: Num, T> TreeIndOwned<N, T>
[src]
pub fn as_tree<'a, 'b, 'c>(&'c self) -> &'c TreeInd<'a, 'b, N, T>
[src]
Cant use Deref because of lifetime
pub fn as_tree_mut<'a, 'b, 'c>(&'c mut self) -> &'c mut TreeInd<'a, 'b, N, T>
[src]
Cant use Deref because of lifetime
Auto Trait Implementations
impl<N, T> RefUnwindSafe for TreeIndOwned<N, T> where
N: RefUnwindSafe,
T: RefUnwindSafe,
[src]
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T> Send for TreeIndOwned<N, T> where
N: Send,
T: Send,
[src]
N: Send,
T: Send,
impl<N, T> Sync for TreeIndOwned<N, T> where
N: Sync,
T: Sync,
[src]
N: Sync,
T: Sync,
impl<N, T> Unpin for TreeIndOwned<N, T>
[src]
impl<N, T> UnwindSafe for TreeIndOwned<N, T> where
N: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
[src]
N: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,