Struct polars_core::utils::Arena[][src]

pub struct Arena<T> { /* fields omitted */ }

Implementations

impl<T> Arena<T>[src]

Simple Arena implementation Allocates memory and stores item in a Vec. Only deallocates when being dropped itself.

pub fn add(&mut self, val: T) -> Node[src]

pub fn new() -> Self[src]

pub fn get(&self, idx: Node) -> &T[src]

pub fn get_mut(&mut self, idx: Node) -> &mut T[src]

pub fn assign(&mut self, idx: Node, val: T)[src]

impl<T: Default> Arena<T>[src]

pub fn take(&mut self, idx: Node) -> T[src]

Trait Implementations

impl<T> Default for Arena<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Arena<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Arena<T> where
    T: Send
[src]

impl<T> Sync for Arena<T> where
    T: Sync
[src]

impl<T> Unpin for Arena<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Arena<T> where
    T: 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, U> Cast<U> for T where
    U: FromCast<T>, 

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

impl<T> FromCast<T> for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,