[][src]Struct broccoli::collections::TreeOwnedInd

pub struct TreeOwnedInd<A: Axis, N: Num, T> { /* fields omitted */ }

An owned version of TreeRefInd

use axgeom::*;
use broccoli::{*,collections::*,DefaultA};

fn not_lifetimed()->TreeOwnedInd<DefaultA,i32,Vec2<i32>>
{
    let rect=vec![vec2(0,10),vec2(3,30)].into_boxed_slice();
    TreeOwnedInd::new(rect,|&mut p|{
        let radius=vec2(10,10);
        Rect::from_point(p,radius)
    })
}

not_lifetimed();

Implementations

impl<N: Num, T: Send + Sync> TreeOwnedInd<DefaultA, N, T>[src]

pub fn new_par(
    bots: Box<[T]>,
    func: impl FnMut(&mut T) -> Rect<N>
) -> TreeOwnedInd<DefaultA, N, T>
[src]

impl<A: Axis, N: Num, T: Send + Sync> TreeOwnedInd<A, N, T>[src]

pub fn with_axis_par(
    axis: A,
    bots: Box<[T]>,
    func: impl FnMut(&mut T) -> Rect<N>
) -> TreeOwnedInd<A, N, T>
[src]

impl<N: Num, T> TreeOwnedInd<DefaultA, N, T>[src]

pub fn new(
    bots: Box<[T]>,
    func: impl FnMut(&mut T) -> Rect<N>
) -> TreeOwnedInd<DefaultA, N, T>
[src]

impl<A: Axis, N: Num, T> TreeOwnedInd<A, N, T>[src]

pub fn with_axis(
    axis: A,
    bots: Box<[T]>,
    func: impl FnMut(&mut T) -> Rect<N>
) -> TreeOwnedInd<A, N, T>
[src]

Create an owned Tree in one thread.

pub fn as_tree(&self) -> &TreeRefInd<'_, A, N, T>[src]

Cant use Deref because of lifetime

pub fn as_tree_mut(&mut self) -> &mut TreeRefInd<'_, A, N, T>[src]

Cant use Deref because of lifetime

Auto Trait Implementations

impl<A, N, T> RefUnwindSafe for TreeOwnedInd<A, N, T> where
    A: RefUnwindSafe,
    N: RefUnwindSafe,
    T: RefUnwindSafe

impl<A, N, T> Send for TreeOwnedInd<A, N, T> where
    T: Send

impl<A, N, T> Sync for TreeOwnedInd<A, N, T> where
    T: Sync

impl<A, N, T> Unpin for TreeOwnedInd<A, N, T> where
    A: Unpin

impl<A, N, T> UnwindSafe for TreeOwnedInd<A, N, T> where
    A: UnwindSafe,
    N: RefUnwindSafe + UnwindSafe,
    T: RefUnwindSafe + UnwindSafe

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.