Struct draw2d::graphics::vulkan::device_allocator::SharedRefAllocator [−][src]
pub struct SharedRefAllocator<Alloc: DeviceAllocator> { /* fields omitted */ }
Expand description
A device allocator implementation which represents a shared reference to an underlying allocator implementation.
This is useful because multiple other allocators often compose over the passthrough. When this occurs, they often need to use the same instance of the passthrough allocator.
Implementations
Trait Implementations
Allocate device memory with the provided type index and size. Read more
Auto Trait Implementations
impl<Alloc> !RefUnwindSafe for SharedRefAllocator<Alloc>
impl<Alloc> !Send for SharedRefAllocator<Alloc>
impl<Alloc> !Sync for SharedRefAllocator<Alloc>
impl<Alloc> Unpin for SharedRefAllocator<Alloc>
impl<Alloc> !UnwindSafe for SharedRefAllocator<Alloc>
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.