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

Method deref

src/arrayvec.rs:158–160  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

156 type Target = [A::Item];
157 #[inline(always)]
158 fn deref(&self) -> &Self::Target {
159 &self.data.as_slice()[..self.len as usize]
160 }
161}
162
163impl<A: Array> DerefMut for ArrayVec<A> {

Callers 4

indexMethod · 0.45
as_sliceMethod · 0.45
indexMethod · 0.45
as_sliceMethod · 0.45

Calls 1

as_sliceMethod · 0.45

Tested by

no test coverage detected