#[repr(transparent)]pub struct SurfaceFormatKHRBuilder<'a> { /* private fields */ }Implementations
sourceimpl<'a> SurfaceFormatKHRBuilder<'a>
impl<'a> SurfaceFormatKHRBuilder<'a>
pub fn format(self, format: Format) -> SurfaceFormatKHRBuilder<'a>
pub fn color_space(
self,
color_space: ColorSpaceKHR
) -> SurfaceFormatKHRBuilder<'a>
sourcepub fn build(self) -> SurfaceFormatKHR
pub fn build(self) -> SurfaceFormatKHR
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 SurfaceFormatKHRBuilder<'a>
impl<'a> Deref for SurfaceFormatKHRBuilder<'a>
type Target = SurfaceFormatKHR
type Target = SurfaceFormatKHR
The resulting type after dereferencing.
sourcefn deref(&self) -> &<SurfaceFormatKHRBuilder<'a> as Deref>::Target
fn deref(&self) -> &<SurfaceFormatKHRBuilder<'a> as Deref>::Target
Dereferences the value.
sourceimpl<'a> DerefMut for SurfaceFormatKHRBuilder<'a>
impl<'a> DerefMut for SurfaceFormatKHRBuilder<'a>
sourcefn deref_mut(&mut self) -> &mut <SurfaceFormatKHRBuilder<'a> as Deref>::Target
fn deref_mut(&mut self) -> &mut <SurfaceFormatKHRBuilder<'a> as Deref>::Target
Mutably dereferences the value.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SurfaceFormatKHRBuilder<'a>
impl<'a> Send for SurfaceFormatKHRBuilder<'a>
impl<'a> Sync for SurfaceFormatKHRBuilder<'a>
impl<'a> Unpin for SurfaceFormatKHRBuilder<'a>
impl<'a> UnwindSafe for SurfaceFormatKHRBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more