Searched refs:RawVec (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/rust/alloc/ |
D | raw_vec.rs | 54 pub(crate) struct RawVec<T, A: Allocator = Global> { struct 60 impl<T> RawVec<T, Global> { argument 107 impl<T, A: Allocator> RawVec<T, A> { impl 283 slf: &mut RawVec<T, A>, in reserve() 365 impl<T, A: Allocator> RawVec<T, A> { implementation 483 unsafe impl<#[may_dangle] T, A: Allocator> Drop for RawVec<T, A> { implementation
|
D | boxed.rs | 162 use crate::raw_vec::RawVec; 617 unsafe { RawVec::with_capacity(len).into_box(len) } in new_uninit_slice() 642 unsafe { RawVec::with_capacity_zeroed(len).into_box(len) } in new_zeroed_slice() 674 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_uninit_slice() 706 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_zeroed_slice() 739 unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) } in new_uninit_slice_in() 767 unsafe { RawVec::with_capacity_zeroed_in(len, alloc).into_box(len) } in new_zeroed_slice_in() 1437 let buf = RawVec::with_capacity(len); in from()
|
/linux-6.1.9/rust/alloc/vec/ |
D | into_iter.rs | 6 use crate::raw_vec::RawVec; 119 self.buf = unsafe { NonNull::new_unchecked(RawVec::NEW.ptr()) }; in forget_allocation_drop_remaining() 328 let _ = RawVec::from_raw_parts_in(self.0.buf.as_ptr(), self.0.cap, alloc); in drop()
|
D | mod.rs | 78 use crate::raw_vec::RawVec; 403 buf: RawVec<T, A>, 427 Vec { buf: RawVec::NEW, len: 0 } in new() 568 Vec { buf: RawVec::new_in(alloc), len: 0 } in new_in() 617 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in() 693 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in()
|