[][src]Struct broccoli::container::TreeIndOwned

pub struct TreeIndOwned<N: Num, T> { /* fields omitted */ }

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]

impl<N: Num, T> TreeIndOwned<N, T>[src]

pub fn new(
    mut bots: Box<[T]>,
    func: impl FnMut(&mut T) -> Rect<N>
) -> 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]

impl<N, T> Send for TreeIndOwned<N, T> where
    N: Send,
    T: Send
[src]

impl<N, T> Sync for TreeIndOwned<N, T> where
    N: Sync,
    T: Sync
[src]

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]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.