Map wrapped value to create a new VOL reference:
(&'a self, f: F)
| 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> |
no outgoing calls
no test coverage detected