pub enum Os {
Linux,
Darwin,
Windows,
None,
}Expand description
The operating system a target runs on.
Variants§
Linux
Linux, hosted or freestanding.
Darwin
Apple platforms. spec/12-abi-and-runtime.md section 12.3 lists the four places
Apple diverges from AAPCS64, and every one of them is a real bug if missed.
Windows
Windows.
None
No operating system, which is what -ffreestanding kernel work looks like.
Implementations§
Source§impl Os
impl Os
Sourcepub const fn object_format(self) -> ObjectFormat
pub const fn object_format(self) -> ObjectFormat
The object file format this operating system uses.
Trait Implementations§
impl Copy for Os
impl Eq for Os
Source§impl Ord for Os
impl Ord for Os
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Os
impl PartialOrd for Os
impl StructuralPartialEq for Os
Auto Trait Implementations§
impl Freeze for Os
impl RefUnwindSafe for Os
impl Send for Os
impl Sync for Os
impl Unpin for Os
impl UnsafeUnpin for Os
impl UnwindSafe for Os
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