pub struct BufferAllocation { /* private fields */ }Implementations§
Source§impl BufferAllocation
impl BufferAllocation
pub fn device_address(&self) -> DeviceAddress
pub fn size(&self) -> DeviceSize
pub fn as_ptr<T>(&self) -> *const T
pub fn as_mut_ptr<T>(&self) -> *mut T
pub unsafe fn as_slice<T>(&self, len: usize) -> &[T]
pub unsafe fn as_mut_slice<T>(&mut self, len: usize) -> &mut [T]
Trait Implementations§
Source§impl Clone for BufferAllocation
impl Clone for BufferAllocation
Source§fn clone(&self) -> BufferAllocation
fn clone(&self) -> BufferAllocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferAllocation
impl Debug for BufferAllocation
impl Copy for BufferAllocation
Auto Trait Implementations§
impl Freeze for BufferAllocation
impl RefUnwindSafe for BufferAllocation
impl !Send for BufferAllocation
impl !Sync for BufferAllocation
impl Unpin for BufferAllocation
impl UnwindSafe for BufferAllocation
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