#[non_exhaustive]pub struct Platform {
pub name: String,
pub protect: String,
pub comment: Option<String>,
}
Expand description
A platform refers to a windowing system which Vulkan can use.
Most operating systems will have only one corresponding platform, but Linux has multiple (XCB, Wayland, etc.)
Used in versions 1.1.70 and later.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Short identifier.
protect: String
C macro name which is used to guard platform-specific definitions.
comment: Option<String>
Human readable description of the platform.
Trait Implementations§
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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