[][src]Struct slab::VacantEntry

pub struct VacantEntry<'a, T: 'a, I: 'a> { /* fields omitted */ }
[]

A handle to a vacant slot in the Slab

Methods

impl<'a, T, I: From<usize> + Into<usize>> VacantEntry<'a, T, I>[src][]

pub fn insert(self, val: T) -> Entry<'a, T, I>[src][]

Insert a value into the entry

pub fn index(&self) -> I[src][]

Returns the entry index

Auto Trait Implementations

impl<'a, T, I> RefUnwindSafe for VacantEntry<'a, T, I> where
    I: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, I> Send for VacantEntry<'a, T, I> where
    T: Send

impl<'a, T, I> Sync for VacantEntry<'a, T, I> where
    I: Sync,
    T: Sync

impl<'a, T, I> Unpin for VacantEntry<'a, T, I>

impl<'a, T, I> !UnwindSafe for VacantEntry<'a, T, I>

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.