pub struct WithTail<T: ?Sized, A: Allocator> { /* private fields */ }Expand description
Tail caching mode (single-thread oriented).
This caches the next insertion slot (node.next), not the tail node itself.
IMPORTANT: This never caches &head (which would become dangling after a move),
it only caches pointers into heap-allocated nodes.
Trait Implementations§
Auto Trait Implementations§
impl<T, A> !Freeze for WithTail<T, A>
impl<T, A> !RefUnwindSafe for WithTail<T, A>
impl<T, A> !Send for WithTail<T, A>
impl<T, A> !Sync for WithTail<T, A>
impl<T, A> Unpin for WithTail<T, A>where
T: ?Sized,
impl<T, A> !UnwindSafe for WithTail<T, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more