• K
    Implement fmt::Pointer for pointers to unsized types · c5f73ed8
    Kamal Marhubi 提交于
    This allows printing pointers to unsized types with the {:p} formatting
    directive. The following impls are extended to unsized types:
     - impl<'a, T: ?Sized> Pointer for &'a T
     - impl<'a, T: ?Sized> Pointer for &'a mut T
     - impl<T: ?Sized> Pointer for *const T
     - impl<T: ?Sized> Pointer for *mut T
     - impl<T: ?Sized> fmt::Pointer for Box<T>
     - impl<T: ?Sized> fmt::Pointer for Rc<T>
     - impl<T: ?Sized> fmt::Pointer for Arc<T>
    c5f73ed8
arc.rs 36.1 KB