Trait ExtendableLife

Source
pub unsafe trait ExtendableLife {
    type Out;

    // Required method
    unsafe fn extend_lifetime(self) -> Self::Out;
}

Required Associated Types§

Required Methods§

Source

unsafe fn extend_lifetime(self) -> Self::Out

Implementations on Foreign Types§

Source§

impl<'a, T: 'static> ExtendableLife for Ref<'a, T>

Source§

type Out = Ref<'static, T>

Source§

unsafe fn extend_lifetime(self) -> Self::Out

Source§

impl<'a, T: 'static> ExtendableLife for RefMut<'a, T>

Source§

type Out = RefMut<'static, T>

Source§

unsafe fn extend_lifetime(self) -> Self::Out

Source§

impl<'a, T: ExtendableLife + Sized> ExtendableLife for Option<T>

Source§

type Out = Option<<T as ExtendableLife>::Out>

Source§

unsafe fn extend_lifetime(self) -> Self::Out

Source§

impl<'a, T: ?Sized + 'static> ExtendableLife for &'a T

Source§

type Out = &'static T

Source§

unsafe fn extend_lifetime(self) -> Self::Out

Source§

impl<'a, T: ?Sized + 'static> ExtendableLife for &'a mut T

Source§

type Out = &'static mut T

Source§

unsafe fn extend_lifetime(self) -> Self::Out

Implementors§