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

Method idx

src/vol.rs:171–177  ·  view source on GitHub ↗

Apply index-operation to wrapped slice:

(&'a self, idx: I)

Source from the content-addressed store, hash-verified

169{
170 // Apply index-operation to wrapped slice:
171 pub fn idx<'a, I>(&'a self, idx: I) -> VOL<&'a I::Output, A>
172 where
173 I: SliceIndex<[T]>,
174 T: 'a,
175 {
176 self.map(|slice| slice.index(idx))
177 }
178
179 // Apply mutable index-operation to wrapped slice:
180 pub fn idxmut<'a, I>(&'a mut self, idx: I) -> VOL<&mut I::Output, A>

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected