pub(crate) trait ToLayout<T> {
// Required method
unsafe fn to_layout(&self) -> LayoutDom<'_, T>;
}
Required Methods§
Sourceunsafe fn to_layout(&self) -> LayoutDom<'_, T>
unsafe fn to_layout(&self) -> LayoutDom<'_, T>
Returns LayoutDom<T>
containing the same pointer.
§Safety
The self
parameter to this method must meet all the requirements of ptr::NonNull::as_ref
.