[−][src]Struct broccoli::container::TreeOwnedInd
An owned version of TreeRefInd
use axgeom::*; use broccoli::{*,container::*,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 + Send + Sync, 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]
bots: Box<[T]>,
func: impl FnMut(&mut T) -> Rect<N>
) -> TreeOwnedInd<DefaultA, N, T>
impl<A: Axis, N: Num + Send + Sync, 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]
axis: A,
bots: Box<[T]>,
func: impl FnMut(&mut T) -> Rect<N>
) -> TreeOwnedInd<A, N, T>
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]
bots: Box<[T]>,
func: impl FnMut(&mut T) -> Rect<N>
) -> TreeOwnedInd<DefaultA, N, T>
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]
axis: A,
bots: Box<[T]>,
func: impl FnMut(&mut T) -> Rect<N>
) -> TreeOwnedInd<A, N, T>
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,
[src]
A: RefUnwindSafe,
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, N, T> Send for TreeOwnedInd<A, N, T> where
N: Send,
T: Send,
[src]
N: Send,
T: Send,
impl<A, N, T> Sync for TreeOwnedInd<A, N, T> where
N: Sync,
T: Sync,
[src]
N: Sync,
T: Sync,
impl<A, N, T> Unpin for TreeOwnedInd<A, N, T> where
A: Unpin,
[src]
A: Unpin,
impl<A, N, T> UnwindSafe for TreeOwnedInd<A, N, T> where
A: UnwindSafe,
N: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
[src]
A: UnwindSafe,
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>,