MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / ref_slice

Method ref_slice

src/fast.rs:370–377  ·  view source on GitHub ↗
(&'me self)

Source from the content-addressed store, hash-verified

368 #[must_use]
369 #[inline(always)]
370 pub fn ref_slice<'me>(&'me self) -> &'me SliceImpl<'me, T>
371 where
372 'borrowed: 'me,
373 {
374 // Safety: 'me is min of 'borrowed and &'me self because of `where 'borrowed: 'me`.
375 let slice: &'me SliceImpl<'me, T> = unsafe { std::mem::transmute(&self.slice) };
376 slice
377 }
378
379 /// Mutates the inner [`SliceImpl`].
380 #[must_use]

Callers 2

borrowed_cloneMethod · 0.80
borrowed_cloneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected