H A D | init.rs | 86 //! To declare an init macro/function you just return an [`impl PinInit<T, E>`]: 112 //! [`impl PinInit<T, E>`] directly from a closure. Of course you have to ensure that the closure 205 //! [`impl PinInit<T, E>`]: PinInit 206 //! [`impl Init<T, E>`]: Init 768 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized { 777 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() argument 818 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument 820 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() 827 pub struct ChainPinInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, Bo 838 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument 891 __init(self, slot: *mut T) -> Result<(), E> __init() argument 920 chain<F>(self, f: F) -> ChainInit<Self, F, T, E> where F: FnOnce(&mut T) -> Result<(), E>, chain() argument 939 __init(self, slot: *mut T) -> Result<(), E> __init() argument 957 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument 976 pin_init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl PinInit<T, E> pin_init_from_closure() argument 995 init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl Init<T, E> init_from_closure() argument 1005 uninit<T, E>() -> impl Init<MaybeUninit<T>, E> uninit() argument 1019 init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl Init<[T; N], E> where I: Init<T, E>, init_array_from_fn() argument 1063 pin_init_array_from_fn<I, const N: usize, T, E>( mut make_init: impl FnMut(usize) -> I, ) -> impl PinInit<[T; N], E> where I: PinInit<T, E>, pin_init_array_from_fn() argument 1099 __init(self, slot: *mut T) -> Result<(), E> __init() argument 1107 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument 1126 pin_init<E>(init: impl PinInit<T, E>) -> error::Result<Pin<Self>> where Error: From<E>, pin_init() argument 1143 init<E>(init: impl Init<T, E>) -> error::Result<Self> where Error: From<E>, init() argument [all...] |