#[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: StringShort identifier.
protect: StringC macro name which is used to guard platform-specific definitions.
comment: Option<String>Human readable description of the platform.
Trait Implementations
sourceimpl PartialEq<Platform> for Platform
impl PartialEq<Platform> for Platform
impl Eq for Platform
impl StructuralEq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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