Skip to main content

ToLayout

Trait ToLayout 

Source
pub(crate) trait ToLayout<'dom, T, L>
where 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, L> ToLayout<'dom, T, L> for Dom<T>
where T: DomObject, L: LayoutFromRaw<'dom, T>,