| H A D | lib.rs | 133 //! To declare an init macro/function you just return an [`impl PinInit<T, E>`]: 161 //! [`impl PinInit<T, E>`] directly from a closure. Of course you have to ensure that the closure 262 //! [`impl PinInit<T, E>`]: crate::PinInit 263 //! [`impl Init<T, E>`]: crate::Init 923 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized { 932 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; 952 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> 954 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() 961 pub struct ChainPinInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, 933 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument 953 pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> where F: FnOnce(Pin<&mut T>) -> Result<(), E>, pin_chain() argument 973 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument 1031 __init(self, slot: *mut T) -> Result<(), E> __init() argument 1061 chain<F>(self, f: F) -> ChainInit<Self, F, T, E> where F: FnOnce(&mut T) -> Result<(), E>, chain() argument 1080 __init(self, slot: *mut T) -> Result<(), E> __init() argument 1096 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument 1115 pin_init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl PinInit<T, E> pin_init_from_closure() argument 1134 init_from_closure<T: ?Sized, E>( f: impl FnOnce(*mut T) -> Result<(), E>, ) -> impl Init<T, E> init_from_closure() argument 1146 cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> cast_pin_init() argument 1162 cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> cast_init() argument 1176 uninit<T, E>() -> impl Init<MaybeUninit<T>, E> uninit() argument 1191 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 1234 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 1288 pin_init_scope<T, E, F, I>(make_init: F) -> impl PinInit<T, E> where F: FnOnce() -> Result<I, E>, I: PinInit<T, E>, pin_init_scope() argument 1331 init_scope<T, E, F, I>(make_init: F) -> impl Init<T, E> where F: FnOnce() -> Result<I, E>, I: Init<T, E>, init_scope() argument 1372 __init(self, slot: *mut T) -> Result<(), E> __init() argument 1383 __pinned_init(self, slot: *mut T) -> Result<(), E> __pinned_init() argument 1398 write_init<E>(self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument 1403 write_pin_init<E>(self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument 1409 write_init<E>(self, init: impl Init<T, E>) -> Result<Self::Initialized, E> write_init() argument 1419 write_pin_init<E>(self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> write_pin_init() argument 1691 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1695 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1702 pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument 1710 pin_init<E>(init: impl PinInit<T, E>) -> impl PinInit<Self, E> pin_init() argument [all...] |