Lines Matching refs:Pin
12 use core::pin::Pin;
31 // Prevent unpin operation from Pin<&mut CxxVector<T>> to &mut CxxVector<T>.
69 pub fn index_mut(self: Pin<&mut Self>, pos: usize) -> Option<Pin<&mut T>> {
106 pub unsafe fn index_unchecked_mut(self: Pin<&mut Self>, pos: usize) -> Pin<&mut T> {
109 Pin::new_unchecked(&mut *ptr)
136 pub fn as_mut_slice(self: Pin<&mut Self>) -> &mut [T]
154 /// Returns an iterator over elements of type `Pin<&mut T>`.
155 pub fn iter_mut(self: Pin<&mut Self>) -> IterMut<T> {
164 pub fn push(self: Pin<&mut Self>, value: T)
177 pub fn pop(self: Pin<&mut Self>) -> Option<T>
244 /// The iterator element type is `Pin<&'a mut T>`.
246 v: Pin<&'a mut CxxVector<T>>,
250 impl<'a, T> IntoIterator for Pin<&'a mut CxxVector<T>>
254 type Item = Pin<&'a mut T>;
266 type Item = Pin<&'a mut T>;
274 let ptr = Pin::into_inner_unchecked(next) as *mut T;
275 Some(Pin::new_unchecked(&mut *ptr))
341 unsafe fn __push_back(v: Pin<&mut CxxVector<Self>>, value: &mut ManuallyDrop<Self>) {
349 unsafe fn __pop_back(v: Pin<&mut CxxVector<Self>>, out: &mut MaybeUninit<Self>) {
371 unsafe fn __push_back(v: Pin<&mut CxxVector<$ty>>, value: &mut ManuallyDrop<$ty>) {
375 fn __push_back(_: Pin<&mut CxxVector<$ty>>, _: &mut ManuallyDrop<$ty>);
380 unsafe fn __pop_back(v: Pin<&mut CxxVector<$ty>>, out: &mut MaybeUninit<$ty>) {
384 fn __pop_back(_: Pin<&mut CxxVector<$ty>>, _: &mut MaybeUninit<$ty>);