[][src]Struct pui_arena::base::sparse::VacantEntry

pub struct VacantEntry<'a, T, I, V: Version = DefaultVersion> { /* fields omitted */ }

An empty slot in a sparse arena

Implementations

impl<T, I, V: Version> VacantEntry<'_, T, I, V>[src]

pub fn key<K: BuildArenaKey<I, V>>(&self) -> K[src]

Get the key associated with the VacantEntry, this key can be used once this VacantEntry gets filled

pub fn insert<K: BuildArenaKey<I, V>>(self, value: T) -> K[src]

Insert an element into the vacant entry

Auto Trait Implementations

impl<'a, T, I, V> Send for VacantEntry<'a, T, I, V> where
    I: Send,
    T: Send,
    V: Send
[src]

impl<'a, T, I, V> Sync for VacantEntry<'a, T, I, V> where
    I: Sync,
    T: Sync,
    V: Sync
[src]

impl<'a, T, I, V> Unpin for VacantEntry<'a, T, I, V>[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, 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.