(&self)
| 1056 | impl Deref for PointerBuf { |
| 1057 | type Target = Pointer; |
| 1058 | fn deref(&self) -> &Self::Target { |
| 1059 | // SAFETY: we hold a valid pointer |
| 1060 | unsafe { Pointer::new_unchecked(self.0.as_str()) } |
| 1061 | } |
| 1062 | } |
| 1063 | |
| 1064 | impl From<PointerBuf> for Box<Pointer> { |