pub struct View<'a, T, Tag: Tag> { /* private fields */ }Implementations§
Source§impl<'a, T, Tag: Tag> View<'a, T, Tag>
impl<'a, T, Tag: Tag> View<'a, T, Tag>
Sourcepub fn capacity(&self) -> Capacity
pub fn capacity(&self) -> Capacity
Returns the immutable extent admitted when this route table was allocated.
pub fn len(&self) -> Count
Sourcepub fn available(&self) -> Count
pub fn available(&self) -> Count
Returns capacity minus the number of initialized values.
Forgotten reservations are included, so this is an upper bound on
reservable slots. Reservation still reports Full or IdentityExhausted.
pub fn is_empty(&self) -> bool
pub fn next_generation(&self) -> Option<Epoch>
pub fn get(self, parts: Parts<Tag>) -> Option<&'a T>
pub fn contains(self, parts: Parts<Tag>) -> bool
pub fn key_at(self, slot: SlotIndex) -> Option<Key<Tag>>
Auto Trait Implementations§
impl<'a, T, Tag> !RefUnwindSafe for View<'a, T, Tag>
impl<'a, T, Tag> !Send for View<'a, T, Tag>
impl<'a, T, Tag> !Sync for View<'a, T, Tag>
impl<'a, T, Tag> !UnwindSafe for View<'a, T, Tag>
impl<'a, T, Tag> Forget for View<'a, T, Tag>
impl<'a, T, Tag> Freeze for View<'a, T, Tag>
impl<'a, T, Tag> Unpin for View<'a, T, Tag>
impl<'a, T, Tag> UnsafeUnpin for View<'a, T, Tag>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more