Struct ash::vk::DisplayModeParametersKHRBuilder
source · [−]#[repr(transparent)]pub struct DisplayModeParametersKHRBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> DisplayModeParametersKHRBuilder<'a>
impl<'a> DisplayModeParametersKHRBuilder<'a>
pub fn visible_region(self, visible_region: Extent2D) -> Self
pub fn refresh_rate(self, refresh_rate: u32) -> Self
sourcepub fn build(self) -> DisplayModeParametersKHR
pub fn build(self) -> DisplayModeParametersKHR
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 DisplayModeParametersKHRBuilder<'a>
impl<'a> Deref for DisplayModeParametersKHRBuilder<'a>
type Target = DisplayModeParametersKHR
type Target = DisplayModeParametersKHR
The resulting type after dereferencing.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DisplayModeParametersKHRBuilder<'a>
impl<'a> Send for DisplayModeParametersKHRBuilder<'a>
impl<'a> Sync for DisplayModeParametersKHRBuilder<'a>
impl<'a> Unpin for DisplayModeParametersKHRBuilder<'a>
impl<'a> UnwindSafe for DisplayModeParametersKHRBuilder<'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