Lines Matching defs:allocator
305 /// (as defined by the allocator Rust is configured to use by default), and its
345 /// the allocator. If you wish to free up unused memory, use
547 /// * `ptr` must have been allocated using the global allocator, such as via
566 /// Violating these may cause problems like corrupting the allocator's
572 /// the allocator cares about the alignment, and these two types have different
670 /// with the provided allocator.
732 /// with the provided allocator.
792 /// and an allocator.
799 /// * `ptr` must be [*currently allocated*] via the given allocator `alloc`.
817 /// Violating these may cause problems like corrupting the allocator's
821 /// the allocator cares about the alignment, and these two types have different
860 /// let alloc = v.allocator();
946 /// the allocated capacity of the data (in elements), and the allocator. These are the same
987 let alloc = unsafe { ptr::read(me.allocator()) };
1037 /// Note that the allocator may give the collection more space than it
1069 /// If the capacity overflows, or the allocator reports a failure, then an error
1104 /// Note that the allocator may give the collection more space than it
1112 /// If the capacity overflows, or the allocator reports a failure, then an error
1142 /// It will drop down as close as possible to the length but the allocator
1394 /// Returns a reference to the underlying allocator.
1397 pub fn allocator(&self) -> &A {
1398 self.buf.allocator()
2262 Vec::with_capacity_in(self.capacity(), self.allocator().clone()),
2267 let mut other = Vec::with_capacity_in(other_len, self.allocator().clone());
2872 let alloc = self.allocator().clone();
2882 let alloc = self.allocator().clone();
2970 let alloc = ManuallyDrop::new(ptr::read(me.allocator()));