Remove as_ptr member function from VRef

This reverts that part of commit
e5dfb3a4c0 since:

    * it's apparently not needed anymore
    * bad API for a type that also implements deref
This commit is contained in:
Simon Hausmann 2020-11-19 15:57:13 +01:00
parent 7d7903d1ae
commit b94054855f

View file

@ -264,12 +264,6 @@ impl<'a, T: ?Sized + VTableMeta> VRef<'a, T> {
}
}
/// Returns a raw pointer to the VRef's instance. This is primarily useful for comparisons.
/// The caller must ensure that the VRef outlives the pointer returned.
pub fn as_ptr(&self) -> *const u8 {
self.inner.ptr
}
unsafe fn from_inner(inner: Inner) -> Self {
Self { inner, phantom: PhantomData }
}