Lines Matching defs:__init
1131 /// The [`Init::__init`] function:
1140 /// code as `__init`.
1164 unsafe fn __init(self, slot: *mut T) -> Result<(), E>;
1205 // SAFETY: The `__init` function is implemented such that it
1213 unsafe fn __init(self, slot: *mut T) -> Result<(), E> {
1214 // SAFETY: All requirements fulfilled since this function is `__init`.
1223 // SAFETY: `__pinned_init` behaves exactly the same as `__init`.
1230 // SAFETY: `__init` has less strict requirements compared to `__pinned_init`.
1231 unsafe { self.__init(slot) }
1299 let res = unsafe { init_from_closure(|ptr: *mut U| init.__init(ptr.cast::<T>())) };
1336 // SAFETY: The pointer is derived from `slot` and thus satisfies the `__init`
1338 if let Err(e) = unsafe { init.__init(ptr) } {
1379 // SAFETY: The pointer is derived from `slot` and thus satisfies the `__init`
1395 // SAFETY: the `__init` function always returns `Ok(())` and initializes every field of `slot`.
1397 unsafe fn __init(self, slot: *mut T) -> Result<(), Infallible> {
1414 // SAFETY: when the `__init` function returns with
1418 unsafe fn __init(self, slot: *mut T) -> Result<(), E> {