pub struct Options<A>where
A: Allocator,{ /* private fields */ }Expand description
Construction-time options for new.
Wraps the allocator-specific options so the same new signature works for
every Allocator impl. Use Options::builder to build one explicitly,
or Options::global_mlocked for the common global + mlock case.
Implementations§
Source§impl Options<GlobalAllocator>
impl Options<GlobalAllocator>
Sourcepub fn global_mlocked() -> Self
pub fn global_mlocked() -> Self
Convenience shorthand for the common case: the global allocator with
mlock enabled.
Auto Trait Implementations§
impl<A> Freeze for Options<A>
impl<A> RefUnwindSafe for Options<A>
impl<A> Send for Options<A>
impl<A> Sync for Options<A>
impl<A> Unpin for Options<A>
impl<A> UnsafeUnpin for Options<A>
impl<A> UnwindSafe for Options<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