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

Method mut_slice

src/fast.rs:382–389  ·  view source on GitHub ↗
(&'me mut self)

Source from the content-addressed store, hash-verified

380 #[must_use]
381 #[inline(always)]
382 pub fn mut_slice<'me>(&'me mut self) -> &'me mut SliceImpl<'me, T>
383 where
384 'borrowed: 'me,
385 {
386 // Safety: 'me is min of 'borrowed and &'me self because of `where 'borrowed: 'me`.
387 let slice: &'me mut SliceImpl<'me, T> = unsafe { std::mem::transmute(&mut self.slice) };
388 slice
389 }
390
391 /// Equivalent to `self.set_owned().extend_from_slice(slice)` but without copying.
392 pub fn set_borrowed(&mut self, slice: &'borrowed [T]) {

Callers 7

as_primitiveMethod · 0.80
decodeMethod · 0.80
decodeMethod · 0.80
as_primitiveMethod · 0.80
decodeMethod · 0.80
decodeMethod · 0.80
decodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected