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

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

An owned version of TreeInd

use axgeom::*;
use broccoli::{*,container::*,node::*};

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

Cant use Deref because of lifetime

Cant use Deref because of lifetime

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.