pub struct RcIndex { /* private fields */ }
Expand description
A reference-counted index to an entry of the set.
Implementations§
Trait Implementations§
Source§impl<'a, T> Index<&'a RcIndex> for IndexedHashSet<T>
Allows to access the set like set[&rc_idx]
.
impl<'a, T> Index<&'a RcIndex> for IndexedHashSet<T>
Allows to access the set like set[&rc_idx]
.
This panics if the RcIndex
used is not from this IndexedHashSet
.
Auto Trait Implementations§
impl Freeze for RcIndex
impl !RefUnwindSafe for RcIndex
impl !Send for RcIndex
impl !Sync for RcIndex
impl Unpin for RcIndex
impl !UnwindSafe for RcIndex
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