pub struct Options<Alloc: Allocator> { /* private fields */ }Available on non-crate feature
tests_loom only.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<Alloc> Freeze for Options<Alloc>
impl<Alloc> RefUnwindSafe for Options<Alloc>
impl<Alloc> Send for Options<Alloc>
impl<Alloc> Sync for Options<Alloc>
impl<Alloc> Unpin for Options<Alloc>
impl<Alloc> UnsafeUnpin for Options<Alloc>
impl<Alloc> UnwindSafe for Options<Alloc>
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