MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / as_slice

Method as_slice

src/vol.rs:260–263  ·  view source on GitHub ↗

Convert array reference to shared slice:

(&self)

Source from the content-addressed store, hash-verified

258{
259 // Convert array reference to shared slice:
260 pub fn as_slice(&self) -> VOL<&[T], A>
261 {
262 self.map(|array| &array[..])
263 }
264
265 // Convert mutable array reference to mutable slice:
266 pub fn as_mut_slice(&mut self) -> VOL<&mut [T], A>

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected