#[repr(i32)]pub enum Platform {
X11 = 393_220,
Wayland = 393_219,
Win32 = 393_217,
MacOS = 393_218,
Null = 393_221,
Any = 393_216,
}Expand description
The platform to use when initializing GLFW. see InitHint::Platform
To check if a particular platform is supported, use Platform::is_supported
Variants§
X11 = 393_220
Wayland = 393_219
Win32 = 393_217
MacOS = 393_218
Null = 393_221
Useful for testing.
Any = 393_216
Chooses the best available platform.
Implementations§
Trait Implementations§
Source§impl Ord for Platform
impl Ord for Platform
Source§impl PartialOrd for Platform
impl PartialOrd for Platform
impl Copy for Platform
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more