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

Method set_borrowed_slice_impl

src/fast.rs:397–399  ·  view source on GitHub ↗

Equivalent to [`Self::set_borrowed`] but takes a [`SliceImpl`] instead of a `&[T]`.

(&mut self, slice: SliceImpl<'borrowed, T>)

Source from the content-addressed store, hash-verified

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>) {
398 self.slice = slice;
399 }
400
401 /// Allows putting contents into a cleared `&mut Vec<T>`. When `SetOwned` is dropped the
402 /// `CowSlice` will be updated to reference the new elements.

Callers 2

borrowed_cloneMethod · 0.80
borrowed_cloneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected