summaryrefslogtreecommitdiffstats
path: root/rust/vendor/alloc-no-stdlib/src/allocator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/vendor/alloc-no-stdlib/src/allocator.rs')
-rw-r--r--rust/vendor/alloc-no-stdlib/src/allocator.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/vendor/alloc-no-stdlib/src/allocator.rs b/rust/vendor/alloc-no-stdlib/src/allocator.rs
new file mode 100644
index 0000000..22d4ee8
--- /dev/null
+++ b/rust/vendor/alloc-no-stdlib/src/allocator.rs
@@ -0,0 +1,7 @@
+
+pub trait Allocator<T> {
+ type AllocatedMemory : super::AllocatedSlice<T>;
+ fn alloc_cell(&mut self, len : usize) -> Self::AllocatedMemory;
+ fn free_cell(&mut self, data : Self::AllocatedMemory);
+}
+