[][src]Enum fenestroj::winbase::LocalAllocFlags

#[repr(u32)]
pub enum LocalAllocFlags {
    Fixed,
    ZeroedFixed,
    Movable,
    ZeroedMovable,
}

The flags that can be used with local_alloc

Variants

Fixed

Allocates fixed memory.

The return value is a pointer to the memory object.

ZeroedFixed

As Fixed but the memory is zeroed.

Movable

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

As Movable but the memory is zeroed.

Trait Implementations

impl Clone for LocalAllocFlags[src]

impl Copy for LocalAllocFlags[src]

impl Debug for LocalAllocFlags[src]

impl Default for LocalAllocFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.