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

Method borrowed_clone

src/int.rs:46–50  ·  view source on GitHub ↗

For CheckedIntDecoder/LengthDecoder.

(&'me self)

Source from the content-addressed store, hash-verified

44impl<'a, T: Int> IntDecoder<'a, T> {
45 // For CheckedIntDecoder/LengthDecoder.
46 pub(crate) fn borrowed_clone<'me: 'a>(&'me self) -> IntDecoder<'me, T> {
47 let mut cow = CowSlice::default();
48 cow.set_borrowed_slice_impl(self.0.ref_slice().clone());
49 Self(cow)
50 }
51}
52
53impl<'a, T: Int> View<'a> for IntDecoder<'a, T> {

Callers 2

populateMethod · 0.45
populateMethod · 0.45

Calls 2

ref_sliceMethod · 0.80

Tested by

no test coverage detected