Lines Matching refs:E

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, Box<T>)>);
833 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E>
835 I: PinInit<T, E>,
836 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
838 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
883 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> {
891 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init() argument
920 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument
922 F: FnOnce(&mut T) -> Result<(), E>, in chain()
929 pub struct ChainInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, Box<T>)>);
934 unsafe impl<T: ?Sized, E, I, F> Init<T, E> for ChainInit<I, F, T, E>
936 I: Init<T, E>,
937 F: FnOnce(&mut T) -> Result<(), E>,
939 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
952 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E>
954 I: Init<T, E>,
955 F: FnOnce(&mut T) -> Result<(), E>,
957 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
976 pub const unsafe fn pin_init_from_closure<T: ?Sized, E>( in pin_init_from_closure() argument
977 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure()
978 ) -> impl PinInit<T, E> { in pin_init_from_closure()
995 pub const unsafe fn init_from_closure<T: ?Sized, E>( in init_from_closure() argument
996 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure()
997 ) -> impl Init<T, E> { in init_from_closure()
1005 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument
1019 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() argument
1021 ) -> impl Init<[T; N], E> in init_array_from_fn()
1023 I: Init<T, E>,
1063 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn() argument
1065 ) -> impl PinInit<[T; N], E> in pin_init_array_from_fn()
1067 I: PinInit<T, E>,
1098 unsafe impl<T, E> Init<T, E> for T {
1099 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
1106 unsafe impl<T, E> PinInit<T, E> for T {
1107 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() argument
1118 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
1120 E: From<AllocError>; in try_pin_init()
1126 fn pin_init<E>(init: impl PinInit<T, E>) -> error::Result<Pin<Self>> in pin_init() argument
1128 Error: From<E>, in pin_init()
1138 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
1140 E: From<AllocError>; in try_init()
1143 fn init<E>(init: impl Init<T, E>) -> error::Result<Self> in init() argument
1145 Error: From<E>, in init()
1157 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
1159 E: From<AllocError>, in try_pin_init()
1171 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
1173 E: From<AllocError>, in try_init()
1187 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
1189 E: From<AllocError>, in try_pin_init()
1201 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
1203 E: From<AllocError>, in try_init()
1344 impl_tuple_zeroable!(A, B, C, D, E, F, G, H, I, J);