pub struct MappedMemoryRange<'a>(/* private fields */);Expand description
Structure specifying a mapped memory range.
Implementations§
Source§impl<'a> MappedMemoryRange<'a>
impl<'a> MappedMemoryRange<'a>
pub fn new( memory: &'a (impl VkHandle<Handle = VkDeviceMemory> + ?Sized), range: Range<VkDeviceSize>, ) -> Self
Sourcepub const unsafe fn new_raw(
memory: VkDeviceMemory,
offset: VkDeviceSize,
size: VkDeviceSize,
) -> Self
pub const unsafe fn new_raw( memory: VkDeviceMemory, offset: VkDeviceSize, size: VkDeviceSize, ) -> Self
§Safety
memory must be a valid object.
Sourcepub const unsafe fn from_raw(raw: VkMappedMemoryRange) -> Self
pub const unsafe fn from_raw(raw: VkMappedMemoryRange) -> Self
§Safety
raw must be a valid [VkMappedMemoryRange] struct.
pub const fn into_raw(self) -> VkMappedMemoryRange
Auto Trait Implementations§
impl<'a> Freeze for MappedMemoryRange<'a>
impl<'a> !RefUnwindSafe for MappedMemoryRange<'a>
impl<'a> !Send for MappedMemoryRange<'a>
impl<'a> !Sync for MappedMemoryRange<'a>
impl<'a> Unpin for MappedMemoryRange<'a>
impl<'a> UnsafeUnpin for MappedMemoryRange<'a>
impl<'a> !UnwindSafe for MappedMemoryRange<'a>
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