pub enum MemoryAllocatorBackend {
Default,
Jemalloc,
Mimalloc,
Snmalloc,
Rust,
}
Expand description
Defines a backend for a memory allocator.
Variants
Default
The default allocator as configured by Python.
Jemalloc
Use jemalloc.
Mimalloc
Use Mimalloc.
Snmalloc
Use Snmalloc.
Rust
Use Rust’s global allocator.
Trait Implementations
sourceimpl Clone for MemoryAllocatorBackend
impl Clone for MemoryAllocatorBackend
sourcefn clone(&self) -> MemoryAllocatorBackend
fn clone(&self) -> MemoryAllocatorBackend
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MemoryAllocatorBackend
impl Debug for MemoryAllocatorBackend
sourceimpl Default for MemoryAllocatorBackend
impl Default for MemoryAllocatorBackend
sourceimpl From<MemoryAllocatorBackend> for String
impl From<MemoryAllocatorBackend> for String
sourcefn from(v: MemoryAllocatorBackend) -> Self
fn from(v: MemoryAllocatorBackend) -> Self
Performs the conversion.
sourceimpl ToString for MemoryAllocatorBackend
impl ToString for MemoryAllocatorBackend
sourceimpl TryFrom<&'_ str> for MemoryAllocatorBackend
impl TryFrom<&'_ str> for MemoryAllocatorBackend
sourceimpl TryFrom<String> for MemoryAllocatorBackend
impl TryFrom<String> for MemoryAllocatorBackend
impl Copy for MemoryAllocatorBackend
impl StructuralPartialEq for MemoryAllocatorBackend
Auto Trait Implementations
impl RefUnwindSafe for MemoryAllocatorBackend
impl Send for MemoryAllocatorBackend
impl Sync for MemoryAllocatorBackend
impl Unpin for MemoryAllocatorBackend
impl UnwindSafe for MemoryAllocatorBackend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more