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