From 98b445f991ce88fb9182979c16714067fbba31f9 Mon Sep 17 00:00:00 2001 From: MaulingMonkey Date: Fri, 26 Jan 2024 04:18:08 -0800 Subject: [PATCH] doc `AVec::allocator`: copy from `ABox::allocator` --- src/vec/avec.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vec/avec.rs b/src/vec/avec.rs index 8ab2d99..c7e0bc2 100644 --- a/src/vec/avec.rs +++ b/src/vec/avec.rs @@ -20,6 +20,7 @@ pub struct AVec { impl Drop for AVec { fn drop(&mut self) { self.clear() } } impl AVec { + /// Retrieve the [`fat::Free`] (+ [`fat::Alloc`] + [`fat::Realloc`] + ...) associated with this [`AVec`]. #[inline(always)] pub fn allocator(&self) -> &A { ABox::allocator(&self.data) } /// Get a pointer to the underlying buffer of `T`s without going through a reference to `T` or `[T]` (which could narrow provenance.)