|
| 1 | +Alloc unsafe impl<'a> Alloc for &'a System |
| 2 | +Alloc for System unsafe impl Alloc for System |
1 | 3 | GetLastError fn GetLastError() -> DWORD;
|
| 4 | +GetLastError fn GetLastError() -> DWORD; |
| 5 | +GetProcessHeap fn GetProcessHeap() -> HANDLE; |
2 | 6 | GetProcessHeap fn GetProcessHeap() -> HANDLE;
|
| 7 | +GetStdHandle fn GetStdHandle(which: DWORD) -> HANDLE; |
3 | 8 | Header struct Header(*mut u8);
|
| 9 | +Header struct Header(*mut u8); |
| 10 | +HeapAlloc fn HeapAlloc(hHeap: HANDLE, dwFlags: DWORD, dwBytes: SIZE_T) -> LPVOID; |
4 | 11 | HeapAlloc fn HeapAlloc(hHeap: HANDLE, dwFlags: DWORD, dwBytes: SIZE_T) -> LPVOID;
|
5 | 12 | HeapFree fn HeapFree(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID) -> BOOL;
|
| 13 | +HeapFree fn HeapFree(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID) -> BOOL; |
| 14 | +HeapReAlloc fn HeapReAlloc(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID, dwBytes: SIZE_T) -> LPVOID; |
6 | 15 | HeapReAlloc fn HeapReAlloc(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID, dwBytes: SIZE_T) -> LPVOID;
|
7 |
| -__rust_allocate pub extern "C" fn __rust_allocate(size: usize, align: usize) -> *mut u8 |
8 |
| -__rust_allocate_zeroed pub extern "C" fn __rust_allocate_zeroed(size: usize, align: usize) -> *mut u8 |
9 |
| -__rust_deallocate pub extern "C" fn __rust_deallocate(ptr: *mut u8, old_size: usize, align: usize) |
10 |
| -__rust_reallocate pub extern "C" fn __rust_reallocate(ptr: *mut u8, |
11 |
| -__rust_reallocate_inplace pub extern "C" fn __rust_reallocate_inplace(ptr: *mut u8, |
12 |
| -__rust_usable_size pub extern "C" fn __rust_usable_size(size: usize, align: usize) -> usize |
| 16 | +Stderr struct Stderr; |
| 17 | +System pub struct System; |
| 18 | +Write for Stderr impl Write for Stderr |
| 19 | +WriteFile fn WriteFile(hFile: HANDLE, |
13 | 20 | align_ptr unsafe fn align_ptr(ptr: *mut u8, align: usize) -> *mut u8
|
| 21 | +align_ptr unsafe fn align_ptr(ptr: *mut u8, align: usize) -> *mut u8 |
| 22 | +aligned_malloc unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 |
14 | 23 | aligned_malloc unsafe fn aligned_malloc(size: usize, align: usize) -> *mut u8
|
| 24 | +alloc unsafe fn alloc(&mut self, layout: Layout) -> Result<*mut u8, AllocErr> |
| 25 | +alloc_excess unsafe fn alloc_excess(&mut self, layout: Layout) -> Result<Excess, AllocErr> |
| 26 | +alloc_zeroed unsafe fn alloc_zeroed(&mut self, layout: Layout) |
15 | 27 | allocate pub unsafe fn allocate(size: usize, align: usize) -> *mut u8
|
| 28 | +allocate_with_flags unsafe fn allocate_with_flags(layout: Layout, flags: DWORD) |
16 | 29 | allocate_with_flags unsafe fn allocate_with_flags(size: usize, align: usize, flags: DWORD) -> *mut u8
|
17 | 30 | allocate_zeroed pub unsafe fn allocate_zeroed(size: usize, align: usize) -> *mut u8
|
| 31 | +dealloc unsafe fn dealloc(&mut self, ptr: *mut u8, _layout: Layout) |
| 32 | +dealloc unsafe fn dealloc(&mut self, ptr: *mut u8, layout: Layout) |
18 | 33 | deallocate pub unsafe fn deallocate(ptr: *mut u8, _old_size: usize, _align: usize)
|
19 | 34 | deallocate pub unsafe fn deallocate(ptr: *mut u8, _old_size: usize, align: usize)
|
20 | 35 | get_header unsafe fn get_header<'a>(ptr: *mut u8) -> &'a mut Header
|
| 36 | +get_header unsafe fn get_header<'a>(ptr: *mut u8) -> &'a mut Header |
| 37 | +grow_in_place unsafe fn grow_in_place(&mut self, |
21 | 38 | imp mod imp
|
22 |
| -reallocate pub unsafe fn reallocate(ptr: *mut u8, _old_size: usize, size: usize, align: usize) -> *mut u8 |
| 39 | +new mod new |
| 40 | +old mod old; |
| 41 | +oom fn oom(&mut self, err: AllocErr) -> ! |
| 42 | +platform mod platform |
| 43 | +realloc unsafe fn realloc(&mut self, |
| 44 | +realloc_excess unsafe fn realloc_excess(&mut self, |
23 | 45 | reallocate pub unsafe fn reallocate(ptr: *mut u8, old_size: usize, size: usize, align: usize) -> *mut u8
|
24 |
| -reallocate_inplace pub unsafe fn reallocate_inplace(_ptr: *mut u8, |
25 |
| -reallocate_inplace pub unsafe fn reallocate_inplace(ptr: *mut u8, |
26 |
| -usable_size pub fn usable_size(size: usize, _align: usize) -> usize |
| 46 | +shrink_in_place unsafe fn shrink_in_place(&mut self, |
| 47 | +usable_size fn usable_size(&self, layout: &Layout) -> (usize, usize) |
| 48 | +write_str fn write_str(&mut self, s: &str) -> fmt::Result |
0 commit comments