Lines Matching full:pub

53 pub(crate) struct RawVec<T, A: Allocator = Global> {
65 pub const NEW: Self = Self::new();
73 pub const fn new() -> Self { in new()
93 pub fn with_capacity(capacity: usize) -> Self { in with_capacity()
101 pub fn with_capacity_zeroed(capacity: usize) -> Self { in with_capacity_zeroed()
112 pub(crate) const MIN_NON_ZERO_CAP: usize = if mem::size_of::<T>() == 1 {
122 pub const fn new_in(alloc: A) -> Self { in new_in()
131 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
146 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in()
162 pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> { in into_box()
247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
255 pub fn ptr(&self) -> *mut T { in ptr()
263 pub fn capacity(&self) -> usize { in capacity()
268 pub fn allocator(&self) -> &A { in allocator()
311 pub fn reserve(&mut self, len: usize, additional: usize) { in reserve()
334 pub fn reserve_for_push(&mut self, len: usize) { in reserve_for_push()
339 pub fn try_reserve(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in try_reserve()
349 pub fn try_reserve_for_push(&mut self, len: usize) -> Result<(), TryReserveError> { in try_reserve_for_push()
371 pub fn reserve_exact(&mut self, len: usize, additional: usize) { in reserve_exact()
376 pub fn try_reserve_exact( in try_reserve_exact()
395 pub fn shrink_to_fit(&mut self, cap: usize) { in shrink_to_fit()