pub struct DefaultAllocator<'buf, const BUF: usize> { /* private fields */ }Expand description
The default allocator implementation.
The exact implementation of this depends on if the alloc feature
is enabled.
For more information, see default().
Trait Implementations§
Source§impl<'a, const BUF: usize> Allocator for &'a DefaultAllocator<'_, BUF>
impl<'a, const BUF: usize> Allocator for &'a DefaultAllocator<'_, BUF>
Source§fn __do_not_implement()
fn __do_not_implement()
Do not implement this trait. It is internal to Musli and will change.
Source§impl<const BUF: usize> GlobalAllocator for &DefaultAllocator<'_, BUF>
Available on crate feature alloc only.
impl<const BUF: usize> GlobalAllocator for &DefaultAllocator<'_, BUF>
Available on crate feature
alloc only.Source§fn __do_not_implement()
fn __do_not_implement()
Do not implement this trait. It is internal to Musli and will change.
Source§fn clone_alloc<T>(alloc: &Self::Alloc<T>) -> Self::Alloc<T>
fn clone_alloc<T>(alloc: &Self::Alloc<T>) -> Self::Alloc<T>
Clone an allocation.
Auto Trait Implementations§
impl<'buf, const BUF: usize> Freeze for DefaultAllocator<'buf, BUF>
impl<'buf, const BUF: usize> RefUnwindSafe for DefaultAllocator<'buf, BUF>
impl<'buf, const BUF: usize> Send for DefaultAllocator<'buf, BUF>
impl<'buf, const BUF: usize> Sync for DefaultAllocator<'buf, BUF>
impl<'buf, const BUF: usize> Unpin for DefaultAllocator<'buf, BUF>
impl<'buf, const BUF: usize> UnsafeUnpin for DefaultAllocator<'buf, BUF>
impl<'buf, const BUF: usize> !UnwindSafe for DefaultAllocator<'buf, BUF>
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