Struct ash::vk::MappedMemoryRangeBuilder
source · [−]#[repr(transparent)]pub struct MappedMemoryRangeBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> MappedMemoryRangeBuilder<'a>
impl<'a> MappedMemoryRangeBuilder<'a>
pub fn memory(self, memory: DeviceMemory) -> Self
pub fn offset(self, offset: DeviceSize) -> Self
pub fn size(self, size: DeviceSize) -> Self
sourcepub fn build(self) -> MappedMemoryRange
pub fn build(self) -> MappedMemoryRange
Calling build will discard all the lifetime information. Only call this if
necessary! Builders implement Deref
targeting their corresponding Vulkan struct,
so references to builders can be passed directly to Vulkan functions.
Trait Implementations
sourceimpl<'a> Deref for MappedMemoryRangeBuilder<'a>
impl<'a> Deref for MappedMemoryRangeBuilder<'a>
type Target = MappedMemoryRange
type Target = MappedMemoryRange
The resulting type after dereferencing.
Auto Trait Implementations
impl<'a> RefUnwindSafe for MappedMemoryRangeBuilder<'a>
impl<'a> !Send for MappedMemoryRangeBuilder<'a>
impl<'a> !Sync for MappedMemoryRangeBuilder<'a>
impl<'a> Unpin for MappedMemoryRangeBuilder<'a>
impl<'a> UnwindSafe for MappedMemoryRangeBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more