Lines Matching defs:Allocator
135 /// Specify necessary constant to pass the information to Allocator that the caller doesn't care
142 /// The kernel's [`Allocator`] trait.
144 /// An implementation of [`Allocator`] can allocate, re-allocate and free memory buffers described
147 /// [`Allocator`] is designed to be implemented as a ZST; [`Allocator`] functions do not operate on
151 /// that requires an `Allocator` to be instantiated, hence its functions must not contain any kind
158 /// - Any pointer to a valid memory allocation must be valid to be passed to any other [`Allocator`]
163 pub unsafe trait Allocator {
183 /// [`Allocator::free`] or [`Allocator::realloc`],
220 /// created by this [`Allocator`]; if `old_layout` is zero-sized `p` does not need to be a
221 /// pointer returned by this [`Allocator`].
228 /// This function has the same guarantees as [`Allocator::alloc`]. When `ptr == Some(p)`, then
246 /// - `ptr` must point to an existing and valid memory allocation created by this [`Allocator`];
248 /// [`Allocator`].