[−][src]Enum std::alloc::ReallocPlacement

pub enum ReallocPlacement {
    MayMove,
    InPlace,
}
🔬 This is a nightly-only experimental API. (allocator_api #32838)

A placement constraint when growing or shrinking an existing allocation.

Variants

MayMove
🔬 This is a nightly-only experimental API. (allocator_api #32838)

The allocator is allowed to move the allocation to a different memory address.

If the allocation does move, it's the responsibility of the allocator to also move the data from the previous location to the new location.

InPlace
🔬 This is a nightly-only experimental API. (allocator_api #32838)

The address of the new memory must not change.

If the allocation would have to be moved to a new location to fit, the reallocation request will fail.

Auto Trait Implementations

impl RefUnwindSafe for ReallocPlacement

impl Send for ReallocPlacement

impl Sync for ReallocPlacement

impl Unpin for ReallocPlacement

impl UnwindSafe for ReallocPlacement

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.