Skip to main content

Project

Trait Project 

Source
pub unsafe trait Project<'d>: App<'d> {
    type View<'step>
       where Self: 'step,
             'd: 'step;

    // Required method
    unsafe fn root<'step>(owner: Pin<&'step mut Self>) -> Self::View<'step>
       where 'd: 'step;
}
Expand description

§Safety

Issue views only from this exact installed root, bounded by its exclusive borrow.

Required Associated Types§

Source

type View<'step>
where Self: 'step, 'd: 'step,

Required Methods§

Source

unsafe fn root<'step>(owner: Pin<&'step mut Self>) -> Self::View<'step>
where 'd: 'step,

§Safety

Borrow the installed root exclusively for this admitted control step.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§