logo
pub enum PotentialDedicatedAllocation<A> {
    Generic(A),
    Dedicated(DeviceMemory),
    DedicatedMapped(MappedDeviceMemory),
}
Expand description

Enumeration that can contain either a generic allocation coming from a pool, or a dedicated allocation for one specific resource.

Variants

Generic(A)

Dedicated(DeviceMemory)

DedicatedMapped(MappedDeviceMemory)

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Returns the memory object from which this is allocated. Returns None if the memory is not mapped. Read more

Returns the memory object from which this is allocated.

Returns the offset at the start of the memory where the first byte of this allocation resides. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.