Searched defs:usize (Results 1 – 11 of 11) sorted by relevance
/rust/alloc/ |
D | raw_vec.rs | 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() 177 fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self { in allocate_in() 212 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in() 247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in() 263 pub fn capacity(&self) -> usize { in capacity() 311 pub fn reserve(&mut self, len: usize, additional: usize) { in reserve() 319 len: usize, in reserve() 320 additional: usize, in reserve() [all …]
|
D | alloc.rs | 32 fn __rust_alloc(size: usize, align: usize) -> *mut u8; in __rust_alloc() 35 fn __rust_dealloc(ptr: *mut u8, size: usize, align: usize); in __rust_dealloc() 38 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc() 41 fn __rust_alloc_zeroed(size: usize, align: usize) -> *mut u8; in __rust_alloc_zeroed() 334 unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 { in exchange_malloc() 365 fn __rust_alloc_error_handler(size: usize, align: usize) -> !; in __rust_alloc_error_handler() 410 pub unsafe fn __rdl_oom(size: usize, _align: usize) -> ! { in __rdl_oom()
|
D | boxed.rs | 752 pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_uninit_slice_in() 780 pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_zeroed_slice_in() 1391 fn write_usize(&mut self, i: usize) { in write_usize() 1412 fn write_length_prefix(&mut self, len: usize) { in write_length_prefix() 1925 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() 1973 fn len(&self) -> usize { in len() 2137 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
|
/rust/alloc/vec/ |
D | mod.rs | 645 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts() 729 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() 789 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() 900 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in() 937 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts() argument 981 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc() argument 1002 pub fn capacity(&self) -> usize { in capacity() 1025 pub fn reserve(&mut self, additional: usize) { in reserve() 1055 pub fn reserve_exact(&mut self, additional: usize) { in reserve_exact() 1184 pub fn shrink_to(&mut self, min_capacity: usize) { in shrink_to() [all …]
|
D | set_len_on_drop.rs | 20 pub(super) fn increment_len(&mut self, increment: usize) { in increment_len() 25 pub(super) fn current_len(&self) -> usize { in current_len()
|
D | drain_filter.rs | 148 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
|
D | into_iter.rs | 209 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() 237 fn count(self) -> usize { in count()
|
D | drain.rs | 162 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
|
/rust/kernel/ |
D | str.rs | 68 pub const fn len(&self) -> usize { in len() 74 pub const fn len_with_nul(&self) -> usize { in len_with_nul() 315 impl CStrIndex for usize {} implementation 453 pub(crate) fn bytes_written(&self) -> usize { in bytes_written()
|
D | ioctl.rs | 70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE()
|
D | init.rs | 1019 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() 1063 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn()
|