Trait FinalizeProjection

Source
pub trait FinalizeProjection {
    type Output;

    // Required method
    unsafe fn finalize(&self) -> Self::Output;
}
Expand description

Implement that if you need to do some kind of post processing like unwrap something or panic if some soundness requirements are not satisfied

Required Associated Types§

Required Methods§

Source

unsafe fn finalize(&self) -> Self::Output

Implementations on Foreign Types§

Source§

impl<'a, P> FinalizeProjection for Pin<P>
where P: Deref, P::Target: Unpin,

Source§

type Output = P

Source§

unsafe fn finalize(&self) -> Self::Output

Source§

impl<'a, T> FinalizeProjection for &Pin<&'a Unpinned<T>>

Source§

type Output = &'a T

Source§

unsafe fn finalize(&self) -> Self::Output

Source§

impl<'a, T> FinalizeProjection for &Pin<&'a mut Unpinned<T>>

Source§

type Output = &'a mut T

Source§

unsafe fn finalize(&self) -> Self::Output

Source§

impl<'a, T> FinalizeProjection for &Pin<OwningRef<'a, Unpinned<T>>>

Source§

type Output = OwningRef<'a, T>

Source§

unsafe fn finalize(&self) -> Self::Output

Source§

impl<T> FinalizeProjection for &Option<Option<T>>

Source§

type Output = Option<T>

Source§

unsafe fn finalize(&self) -> Self::Output

Source§

impl<T: FinalizeProjection> FinalizeProjection for Option<T>

Source§

type Output = Option<<T as FinalizeProjection>::Output>

Source§

unsafe fn finalize(&self) -> Self::Output

Implementors§