Home
last modified time | relevance | path

Searched defs:AllocError (Results 1 – 15 of 15) sorted by relevance

/third_party/rust/rust/library/core/src/alloc/
Dmod.rs34 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/
Dalloc.rs135 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/
Dboxed.rs65 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
Dvec.rs1096 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, core::alloc::AllocError> { in test_into_iter_drop_allocator()
/third_party/rust/rust/library/alloc/src/
Dalloc.rs180 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
Dsync.rs564 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
Drc.rs557 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
Dboxed.rs302 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/
Dbox-custom-alloc.rs17 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/
Ddebuginfo-box-with-large-allocator.rs13 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument
/third_party/rust/rust/tests/ui/box/
Dlarge-allocator-ice.rs13 ) -> Result<std::ptr::NonNull<[u8]>, std::alloc::AllocError> { in allocate()
Dleak-alloc.rs11 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument
/third_party/rust/rust/library/alloc/src/raw_vec/
Dtests.rs24 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocator_param() argument
/third_party/rust/rust/compiler/rustc_middle/src/mir/interpret/
Dallocation.rs172 pub enum AllocError { enum
186 impl From<ScalarSizeMismatch> for AllocError { implementation
192 impl AllocError { implementation
/third_party/rust/rust/library/alloc/src/collections/
Dmod.rs92 AllocError { enumerator