Struct polars::prelude::Arena [−][src]
pub struct Arena<T> { /* fields omitted */ }
Implementations
impl<T> Arena<T>
[src]
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]
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]
F: FnOnce(T) -> T,
pub fn try_replace_with<F>(
&mut self,
idx: Node,
f: F
) -> Result<(), PolarsError> where
F: FnMut(T) -> Result<T, PolarsError>,
[src]
&mut self,
idx: Node,
f: F
) -> Result<(), PolarsError> where
F: FnMut(T) -> Result<T, PolarsError>,
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Arena<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Arena<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Arena<T> where
T: UnwindSafe,
impl<T> UnwindSafe for Arena<T> where
T: UnwindSafe,
Blanket Implementations
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,