Struct draw2d::graphics::vulkan::device_allocator::MetricsAllocator [−][src]
pub struct MetricsAllocator<Alloc: DeviceAllocator> { /* fields omitted */ }
Expand description
A device allocator decorator which records the number of allocations and other metrics. A summary of results is printed when the allocator is destroyed.
Implementations
Trait Implementations
Allocate device memory with the provided type index and size. Read more
Auto Trait Implementations
impl<Alloc> !RefUnwindSafe for MetricsAllocator<Alloc>
impl<Alloc> !Send for MetricsAllocator<Alloc>
impl<Alloc> !Sync for MetricsAllocator<Alloc>
impl<Alloc> Unpin for MetricsAllocator<Alloc> where
Alloc: Unpin,
impl<Alloc> !UnwindSafe for MetricsAllocator<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.