pub enum Platform {
Linux,
Windows,
MacOS,
Android,
IOS,
Wasm,
}Expand description
Plataforma detectada
Variants§
Linux
Linux (Desktop)
Windows
Windows (Desktop)
MacOS
macOS (Desktop)
Android
Android (Mobile)
IOS
iOS (Mobile)
Wasm
WebAssembly (Browser)
Implementations§
Source§impl Platform
impl Platform
Sourcepub fn is_desktop(self) -> bool
pub fn is_desktop(self) -> bool
¿Es desktop? (Linux, Windows, macOS)
Sourcepub fn supports_x11(self) -> bool
pub fn supports_x11(self) -> bool
¿Soporta X11?
Sourcepub fn supports_wayland(self) -> bool
pub fn supports_wayland(self) -> bool
¿Soporta Wayland?
Sourcepub fn debug_info(self) -> String
pub fn debug_info(self) -> String
Info completa para debug
Trait Implementations§
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 UnsafeUnpin 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