MCPcopy Create free account
hub / github.com/Lokathor/tinyvec / deref_mut

Method deref_mut

src/arrayvec.rs:165–167  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

163impl<A: Array> DerefMut for ArrayVec<A> {
164 #[inline(always)]
165 fn deref_mut(&mut self) -> &mut Self::Target {
166 &mut self.data.as_slice_mut()[..self.len as usize]
167 }
168}
169
170impl<A: Array, I: SliceIndex<[A::Item]>> Index<I> for ArrayVec<A> {

Callers 5

index_mutMethod · 0.45
as_mut_sliceMethod · 0.45
removeMethod · 0.45
index_mutMethod · 0.45
as_mut_sliceMethod · 0.45

Calls 1

as_slice_mutMethod · 0.45

Tested by

no test coverage detected