pub enum TargetOperatingSystem {
Show 23 variants
Cuda,
AmdHsa,
Linux,
MacOS,
Windows,
Android,
IOS,
TvOS,
WatchOS,
VisionOS,
FreeBSD,
OpenBSD,
NetBSD,
DragonFly,
Redox,
Horizon,
Psp,
Psx,
Vita,
Orbis,
Prospero,
Wasi,
Unknown,
}Variants§
Cuda
AmdHsa
Linux
MacOS
Windows
Android
IOS
TvOS
WatchOS
VisionOS
FreeBSD
OpenBSD
NetBSD
DragonFly
Redox
Horizon
Psp
Psx
Vita
Orbis
Prospero
Wasi
Unknown
Implementations§
Source§impl TargetOperatingSystem
impl TargetOperatingSystem
Sourcepub const fn links_a_c_runtime(self) -> bool
pub const fn links_a_c_runtime(self) -> bool
Whether a target on this operating system links C runtime objects and a libc that the environment axis chooses.
False where the operating system supplies its own runtime — Darwin, Windows, WASI
— or where there is nothing to link at all, as on the GPU targets. Those declare
TargetEnvironment::Freestanding and the axis selects nothing for them.
Trait Implementations§
Source§impl Clone for TargetOperatingSystem
impl Clone for TargetOperatingSystem
impl Copy for TargetOperatingSystem
Source§impl Debug for TargetOperatingSystem
impl Debug for TargetOperatingSystem
Source§impl Display for TargetOperatingSystem
impl Display for TargetOperatingSystem
impl Eq for TargetOperatingSystem
Source§impl FromStr for TargetOperatingSystem
impl FromStr for TargetOperatingSystem
Source§impl PartialEq for TargetOperatingSystem
impl PartialEq for TargetOperatingSystem
impl StructuralPartialEq for TargetOperatingSystem
Auto Trait Implementations§
impl Freeze for TargetOperatingSystem
impl RefUnwindSafe for TargetOperatingSystem
impl Send for TargetOperatingSystem
impl Sync for TargetOperatingSystem
impl Unpin for TargetOperatingSystem
impl UnsafeUnpin for TargetOperatingSystem
impl UnwindSafe for TargetOperatingSystem
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