Lines Matching refs:E
21 pub(crate) struct InitClosure<F, T: ?Sized, E>(pub(crate) F, pub(crate) Invariant<(E, T)>);
25 unsafe impl<T: ?Sized, F, E> Init<T, E> for InitClosure<F, T, E>
27 F: FnOnce(*mut T) -> Result<(), E>,
30 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
37 unsafe impl<T: ?Sized, F, E> PinInit<T, E> for InitClosure<F, T, E>
39 F: FnOnce(*mut T) -> Result<(), E>,
42 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
68 fn make_closure<F, O, E>(self, f: F) -> F in make_closure() argument
70 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
97 fn make_closure<F, O, E>(self, f: F) -> F in make_closure() argument
99 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init() argument