Skip to main content

ToLayout

Trait ToLayout 

Source
pub trait ToLayout<'dom, T: DomObject, L: LayoutFromRaw<'dom, T>> {
    // Required method
    unsafe fn to_layout(&self) -> L;
}

Required Methods§

Source

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.

Implementors§

Source§

impl<'dom, T: DomObject, L: LayoutFromRaw<'dom, T>> ToLayout<'dom, T, L> for Dom<T>