Home
last modified time | relevance | path

Searched refs:RawVec (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/rust/alloc/
Draw_vec.rs53 pub(crate) struct RawVec<T, A: Allocator = Global> { struct
59 impl<T> RawVec<T, Global> { implementation
106 impl<T, A: Allocator> RawVec<T, A> { implementation
318 slf: &mut RawVec<T, A>, in reserve()
400 impl<T, A: Allocator> RawVec<T, A> { implementation
520 unsafe impl<#[may_dangle] T, A: Allocator> Drop for RawVec<T, A> { implementation
Dboxed.rs175 use crate::raw_vec::RawVec;
631 unsafe { RawVec::with_capacity(len).into_box(len) } in new_uninit_slice()
656 unsafe { RawVec::with_capacity_zeroed(len).into_box(len) } in new_zeroed_slice()
688 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_uninit_slice()
720 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_zeroed_slice()
753 unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) } in new_uninit_slice_in()
781 unsafe { RawVec::with_capacity_zeroed_in(len, alloc).into_box(len) } in new_zeroed_slice_in()
1481 let buf = RawVec::with_capacity(len); in from_slice()
/Linux-v6.6/rust/alloc/vec/
Dinto_iter.rs8 use crate::raw_vec::RawVec;
127 self.buf = unsafe { NonNull::new_unchecked(RawVec::NEW.ptr()) }; in forget_allocation_drop_remaining()
410 let _ = RawVec::from_raw_parts_in(self.0.buf.as_ptr(), self.0.cap, alloc); in drop()
Dmod.rs75 use crate::raw_vec::RawVec;
400 buf: RawVec<T, A>,
424 Vec { buf: RawVec::NEW, len: 0 } in new()
668 Vec { buf: RawVec::new_in(alloc), len: 0 } in new_in()
730 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in()
790 Ok(Vec { buf: RawVec::try_with_capacity_in(capacity, alloc)?, len: 0 }) in try_with_capacity_in()
901 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in()