Struct polars::prelude::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 pop(&mut self) -> Option<T>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn new() -> Arena<T>[src]

pub fn with_capacity(cap: usize) -> Arena<T>[src]

pub fn get_node(&self, val: &T) -> Option<Node>[src]

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

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

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

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

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

pub fn replace_with<F>(&mut self, idx: Node, f: F) where
    F: FnOnce(T) -> T, 
[src]

pub fn try_replace_with<F>(
    &mut self,
    idx: Node,
    f: F
) -> Result<(), PolarsError> where
    F: FnMut(T) -> Result<T, PolarsError>, 
[src]

Trait Implementations

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

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

Auto Trait Implementations

impl<T> RefUnwindSafe for Arena<T> where
    T: RefUnwindSafe

impl<T> Send for Arena<T> where
    T: Send

impl<T> Sync for Arena<T> where
    T: Sync

impl<T> Unpin for Arena<T> where
    T: Unpin

impl<T> UnwindSafe for Arena<T> where
    T: 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, 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,