| 1 | use core::fmt::{self, Pointer}; |
|---|---|
| 2 | |
| 3 | pub struct Var<'a, T: ?Sized>(pub &'a T); |
| 4 | |
| 5 | impl<'a, T: Pointer + ?Sized> Pointer for Var<'a, T> { |
| 6 | fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { |
| 7 | Pointer::fmt(self.0, f:formatter) |
| 8 | } |
| 9 | } |
| 10 |
