pub struct DynamicBlock<B: Backend> { /* private fields */ }
Expand description
Memory block allocated from DynamicAllocator
Trait Implementations§
Source§impl<B> Block<B> for DynamicBlock<B>where
B: Backend,
impl<B> Block<B> for DynamicBlock<B>where
B: Backend,
Source§fn properties(&self) -> Properties
fn properties(&self) -> Properties
Get memory properties of the block.
Source§fn map<'a>(
&'a mut self,
_device: &B::Device,
range: Range<u64>,
) -> Result<MappedRange<'a, B>, MapError>
fn map<'a>( &'a mut self, _device: &B::Device, range: Range<u64>, ) -> Result<MappedRange<'a, B>, MapError>
Get mapping for the buffer range.
Memory writes to the region performed by device become available for the host.
impl<B> Send for DynamicBlock<B>where
B: Backend,
impl<B> Sync for DynamicBlock<B>where
B: Backend,
Auto Trait Implementations§
impl<B> Freeze for DynamicBlock<B>
impl<B> RefUnwindSafe for DynamicBlock<B>
impl<B> Unpin for DynamicBlock<B>
impl<B> UnwindSafe for DynamicBlock<B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more