mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
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:
parent
7d7903d1ae
commit
b94054855f
1 changed files with 0 additions and 6 deletions
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue