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

Method as_slice

src/fast.rs:71–73  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

69 }
70
71 pub fn as_slice(&self) -> &[T] {
72 unsafe { std::slice::from_raw_parts(self.start, self.len()) }
73 }
74
75 pub fn as_mut_slice(&mut self) -> &mut [T] {
76 unsafe { std::slice::from_raw_parts_mut(self.start, self.len()) }

Callers 15

collect_intoMethod · 0.80
unpack_bytesFunction · 0.80
testFunction · 0.80
bench_unpack_arithmeticFunction · 0.80
defaultMethod · 0.80
with_allocationMethod · 0.80
set_ownedMethod · 0.80
mut_ownedMethod · 0.80
dropMethod · 0.80

Calls 2

sub_ptrFunction · 0.85
lenMethod · 0.45

Tested by 3

testFunction · 0.64
testFunction · 0.64