Enum build_target::Os
source · [−]#[non_exhaustive]
pub enum Os<'a> {
}
Expand description
Operating system of the target.
Note
This value is closely related to the second and third element of the platform target triple, though it is not identical.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Android
android
: Google’s Android mobile operating system
Bitrig
bitrig
: OpenBSD-based operating system
CloudABI
cloudabi
: Nuxi CloudABI runtime environment
Dragonfly
dragonfly
: DragonflyBSD
Emscripten
emscripten
: The emscripten JavaScript transpiler
FreeBSD
freebsd
: The FreeBSD operating system
Fuchsia
fuchsia
: Google’s next-gen Rust Os
Haiku
haiku
: Haiku, an open source BeOs clone
iOs
ios
: Apple’s iOs mobile operating system
Linux
linux
: Linux
MacOs
macos
: Apple’s Mac Os X
NetBSD
netbsd
: The NetBSD operating system
OpenBSD
openbsd
: The OpenBSD operating system
Redox
redox
: Redox, a Unix-like Os written in Rust
Solaris
solaris
: Oracle’s (formerly Sun) Solaris operating system
Windows
windows
: Microsoft’s Windows operating system
Other(Cow<'a, str>)
Operating systems we don’t know about
Implementations
Trait Implementations
sourceimpl<'a> Ord for Os<'a>
impl<'a> Ord for Os<'a>
sourceimpl<'a> PartialOrd<Os<'a>> for Os<'a>
impl<'a> PartialOrd<Os<'a>> for Os<'a>
sourcefn partial_cmp(&self, other: &Os<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Os<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Eq for Os<'a>
impl<'a> StructuralEq for Os<'a>
impl<'a> StructuralPartialEq for Os<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Os<'a>
impl<'a> Send for Os<'a>
impl<'a> Sync for Os<'a>
impl<'a> Unpin for Os<'a>
impl<'a> UnwindSafe for Os<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more