| /third_party/rust/rust/library/core/src/alloc/ |
| D | mod.rs | 34 pub struct AllocError; struct 41 impl Error for AllocError {} implementation 45 impl fmt::Display for AllocError { implementation 130 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError>; in allocate() argument 147 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() argument 208 ) -> Result<NonNull<[u8]>, AllocError> { in grow() argument 271 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() argument 335 ) -> Result<NonNull<[u8]>, AllocError> { in shrink() argument 374 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument 379 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() argument [all …]
|
| /third_party/rust/rust/library/std/src/ |
| D | alloc.rs | 135 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() argument 159 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl() argument 205 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument 210 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() argument 229 ) -> Result<NonNull<[u8]>, AllocError> { in grow() argument 240 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() argument 251 ) -> Result<NonNull<[u8]>, AllocError> { in shrink() argument
|
| /third_party/rust/rust/library/alloc/tests/ |
| D | boxed.rs | 65 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument 82 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() argument 97 ) -> Result<NonNull<[u8]>, AllocError> { in grow() argument 126 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() argument 151 ) -> Result<NonNull<[u8]>, AllocError> { in shrink() argument
|
| D | vec.rs | 1096 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, core::alloc::AllocError> { in test_into_iter_drop_allocator()
|
| /third_party/rust/rust/library/alloc/src/ |
| D | alloc.rs | 180 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() argument 200 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl() argument 244 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument 249 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() argument 268 ) -> Result<NonNull<[u8]>, AllocError> { in grow() argument 279 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() argument 290 ) -> Result<NonNull<[u8]>, AllocError> { in shrink() argument
|
| D | sync.rs | 564 pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError> { in try_pin() argument 581 pub fn try_new(data: T) -> Result<Arc<T>, AllocError> { in try_new() argument 1303 allocate: impl FnOnce(Layout) -> Result<NonNull<[u8]>, AllocError>, in allocate_for_layout() argument 1321 allocate: impl FnOnce(Layout) -> Result<NonNull<[u8]>, AllocError>, in try_allocate_for_layout() argument
|
| D | rc.rs | 557 pub fn try_new(value: T) -> Result<Rc<T>, AllocError> { in try_new() argument 1392 allocate: impl FnOnce(Layout) -> Result<NonNull<[u8]>, AllocError>, in allocate_for_layout() argument 1411 allocate: impl FnOnce(Layout) -> Result<NonNull<[u8]>, AllocError>, in try_allocate_for_layout() argument
|
| D | boxed.rs | 302 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new() argument 677 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice() argument 709 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice() argument
|
| /third_party/rust/rust/src/tools/miri/tests/pass/ |
| D | box-custom-alloc.rs | 17 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument 64 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument
|
| /third_party/rust/rust/tests/ui/debuginfo/ |
| D | debuginfo-box-with-large-allocator.rs | 13 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument
|
| /third_party/rust/rust/tests/ui/box/ |
| D | large-allocator-ice.rs | 13 ) -> Result<std::ptr::NonNull<[u8]>, std::alloc::AllocError> { in allocate()
|
| D | leak-alloc.rs | 11 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument
|
| /third_party/rust/rust/library/alloc/src/raw_vec/ |
| D | tests.rs | 24 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocator_param() argument
|
| /third_party/rust/rust/compiler/rustc_middle/src/mir/interpret/ |
| D | allocation.rs | 172 pub enum AllocError { enum 186 impl From<ScalarSizeMismatch> for AllocError { implementation 192 impl AllocError { implementation
|
| /third_party/rust/rust/library/alloc/src/collections/ |
| D | mod.rs | 92 AllocError { enumerator
|