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

Method map

src/vol.rs:135–146  ·  view source on GitHub ↗

Map wrapped value to create a new VOL reference:

(&'a self, f: F)

Source from the content-addressed store, hash-verified

133{
134 // Map wrapped value to create a new VOL reference:
135 pub fn map<'a, F, U>(&'a self, f: F) -> VOL<&'a U, A>
136 where
137 F: FnOnce(&'a T) -> &'a U,
138 U: ?Sized,
139 T: 'a,
140 {
141 VOL
142 {
143 access: self.access,
144 reference: f(self.reference.deref()),
145 }
146 }
147
148 // Map wrapped value to create a mutable VOL reference:
149 pub fn mapmut<'a, F, U>(&'a mut self, f: F) -> VOL<&'a mut U, A>

Callers 15

idxMethod · 0.45
as_sliceMethod · 0.45
usableframesMethod · 0.45
color_to_bgFunction · 0.45
newMethod · 0.45
loadMethod · 0.45
parseMethod · 0.45
nextMethod · 0.45
next_rangeMethod · 0.45
from_strMethod · 0.45
from_str_radixMethod · 0.45
productMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected