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

Method as_mut_slice

src/fast.rs:75–77  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

73 }
74
75 pub fn as_mut_slice(&mut self) -> &mut [T] {
76 unsafe { std::slice::from_raw_parts_mut(self.start, self.len()) }
77 }
78
79 pub fn clear(&mut self) {
80 // Safety: same as `Vec::clear` except `self.end = self.start` instead of `self.len = 0` but

Callers 4

collect_intoMethod · 0.80
clearMethod · 0.80
collect_intoMethod · 0.80
collect_intoMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected