Searched refs:I (Results 1 – 4 of 4) sorted by relevance
| /rust/pin-init/examples/ |
| A D | static_init.rs | 26 pub struct StaticInit<T, I> { 28 init: Cell<Option<I>>, 33 unsafe impl<T: Sync, I> Sync for StaticInit<T, I> {} 34 unsafe impl<T: Send, I> Send for StaticInit<T, I> {} 36 impl<T, I: PinInit<T>> StaticInit<T, I> { 37 pub const fn new(init: I) -> Self { in new() 47 impl<T, I: PinInit<T>> ops::Deref for StaticInit<T, I> {
|
| /rust/pin-init/src/ |
| A D | lib.rs | 1093 pub struct ChainPinInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, T)>); 1099 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E> 1101 I: PinInit<T, E>, 1201 pub struct ChainInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, T)>); 1206 unsafe impl<T: ?Sized, E, I, F> Init<T, E> for ChainInit<I, F, T, E> 1208 I: Init<T, E>, 1222 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E> 1224 I: Init<T, E>, 1323 mut make_init: impl FnMut(usize) -> I, in init_array_from_fn() argument 1326 I: Init<T, E>, [all …]
|
| /rust/kernel/alloc/ |
| A D | kvec.rs | 948 impl<T, I: SliceIndex<[T]>, A> Index<I> for Vec<T, A> 952 type Output = I::Output; 955 fn index(&self, index: I) -> &Self::Output { in index() 960 impl<T, I: SliceIndex<[T]>, A> IndexMut<I> for Vec<T, A> 965 fn index_mut(&mut self, index: I) -> &mut Self::Output { in index_mut()
|
| /rust/kernel/ |
| A D | configfs.rs | 709 pub const unsafe fn add<const I: usize, const ID: u64, O>( in add() 716 const { assert!(I < N - 1, "Invalid attribute index") }; in add() 720 unsafe { (&mut *self.0.get())[I] = core::ptr::from_ref(attribute).cast_mut().cast() }; in add()
|
Completed in 13 milliseconds