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 the exact number of vacant slots in this table snapshot.
pub fn is_empty(&self) -> bool
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> 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