[][src]Struct broccoli::container::TreeOwned

pub struct TreeOwned<A: Axis, T: Aabb> { /* fields omitted */ }

An owned version of TreeRef

An owned (Rect<N>,T) example

use broccoli::{node::BBox,bbox,rect,prelude::*,container::*,analyze::DefaultA};

fn not_lifetimed()->TreeOwned<DefaultA,BBox<i32,f32>>
{
    let a=vec![bbox(rect(0,10,0,10),0.0)].into_boxed_slice();
    TreeOwned::new(a)
}

not_lifetimed();

Implementations

impl<T: Aabb + Send + Sync> TreeOwned<DefaultA, T> where
    T::Num: Send + Sync
[src]

pub fn new_par(bots: Box<[T]>) -> TreeOwned<DefaultA, T>[src]

impl<A: Axis, T: Aabb + Send + Sync> TreeOwned<A, T> where
    T::Num: Send + Sync
[src]

pub fn with_axis_par(axis: A, bots: Box<[T]>) -> TreeOwned<A, T>[src]

impl<T: Aabb> TreeOwned<DefaultA, T>[src]

pub fn new(bots: Box<[T]>) -> TreeOwned<DefaultA, T>[src]

impl<A: Axis, T: Aabb> TreeOwned<A, T>[src]

pub fn with_axis(axis: A, bots: Box<[T]>) -> TreeOwned<A, T>[src]

Create an owned Tree in one thread.

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

Cant use Deref because of lifetime

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

Cant use Deref because of lifetime

Auto Trait Implementations

impl<A, T> RefUnwindSafe for TreeOwned<A, T> where
    A: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as Aabb>::Num: RefUnwindSafe
[src]

impl<A, T> Send for TreeOwned<A, T> where
    T: Send,
    <T as Aabb>::Num: Send
[src]

impl<A, T> Sync for TreeOwned<A, T> where
    T: Sync,
    <T as Aabb>::Num: Sync
[src]

impl<A, T> Unpin for TreeOwned<A, T> where
    A: Unpin
[src]

impl<A, T> UnwindSafe for TreeOwned<A, T> where
    A: UnwindSafe,
    T: RefUnwindSafe + UnwindSafe,
    <T as Aabb>::Num: 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.