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

Method set_borrowed

src/fast.rs:392–394  ·  view source on GitHub ↗

Equivalent to `self.set_owned().extend_from_slice(slice)` but without copying.

(&mut self, slice: &'borrowed [T])

Source from the content-addressed store, hash-verified

390
391 /// Equivalent to `self.set_owned().extend_from_slice(slice)` but without copying.
392 pub fn set_borrowed(&mut self, slice: &'borrowed [T]) {
393 self.slice = slice.into();
394 }
395
396 /// Equivalent to [`Self::set_borrowed`] but takes a [`SliceImpl`] instead of a `&[T]`.
397 pub fn set_borrowed_slice_impl(&mut self, slice: SliceImpl<'borrowed, T>) {

Callers 2

unpack_bytes_unsignedFunction · 0.80
unpack_bytes_less_thanFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected