Lines Matching full:pub

54 pub(crate) struct RawVec<T, A: Allocator = Global> {
66 pub const NEW: Self = Self::new();
74 pub const fn new() -> Self { in new()
94 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
102 pub fn with_capacity_zeroed(capacity: usize) -> Self { in with_capacity_zeroed()
113 pub(crate) const MIN_NON_ZERO_CAP: usize = if mem::size_of::<T>() == 1 {
123 pub const fn new_in(alloc: A) -> Self { in new_in()
132 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
140 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in()
156 pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> { in into_box()
217 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
225 pub fn ptr(&self) -> *mut T { in ptr()
233 pub fn capacity(&self) -> usize { in capacity()
238 pub fn allocator(&self) -> &A { in allocator()
276 pub fn reserve(&mut self, len: usize, additional: usize) { in reserve()
299 pub fn reserve_for_push(&mut self, len: usize) { in reserve_for_push()
304 pub fn try_reserve(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in try_reserve()
314 pub fn try_reserve_for_push(&mut self, len: usize) -> Result<(), TryReserveError> { in try_reserve_for_push()
336 pub fn reserve_exact(&mut self, len: usize, additional: usize) { in reserve_exact()
341 pub fn try_reserve_exact( in try_reserve_exact()
360 pub fn shrink_to_fit(&mut self, cap: usize) { in shrink_to_fit()