#[repr(u32)]pub enum LocalAllocFlags {
Fixed = 0,
ZeroedFixed = 64,
Movable = 2,
ZeroedMovable = 66,
}Expand description
The flags that can be used with local_alloc
Variants§
Fixed = 0
Allocates fixed memory.
The return value is a pointer to the memory object.
ZeroedFixed = 64
As Fixed but the memory is zeroed.
Movable = 2
Allocates movable memory. Higher overhead, avoid if possible.
Memory blocks are never moved in physical memory, but they can be moved
within the default heap. The return value is a handle to the memory
object. To translate the handle to a pointer, use the LocalLock
function.
ZeroedMovable = 66
As Movable but the memory is zeroed.
Trait Implementations§
Source§impl Clone for LocalAllocFlags
impl Clone for LocalAllocFlags
Source§fn clone(&self) -> LocalAllocFlags
fn clone(&self) -> LocalAllocFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LocalAllocFlags
Source§impl Debug for LocalAllocFlags
impl Debug for LocalAllocFlags
Auto Trait Implementations§
impl Freeze for LocalAllocFlags
impl RefUnwindSafe for LocalAllocFlags
impl Send for LocalAllocFlags
impl Sync for LocalAllocFlags
impl Unpin for LocalAllocFlags
impl UnsafeUnpin for LocalAllocFlags
impl UnwindSafe for LocalAllocFlags
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