script::dom::bindings::root

Trait ToLayout

Source
pub(crate) trait ToLayout<T> {
    // Required method
    unsafe fn to_layout(&self) -> LayoutDom<'_, T>;
}

Required Methods§

Source

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.

Implementors§

Source§

impl<T: DomObject> ToLayout<T> for Dom<T>