[−][src]Enum platforms::target::OS
target_os
: Operating system of the target. This value is closely related to the second
and third element of the platform target triple, though it is not identical.
Variants
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
Unknown
Operating systems we don't know about
Methods
impl OS
[src]
impl OS
pub fn as_str(self) -> &'static str | [src] |
String representing this target OS which matches #[cfg(target_os)]
Trait Implementations
impl Copy for OS
[src]
impl Copy for OS
impl PartialEq<OS> for OS
[src]
impl PartialEq<OS> for OS
fn eq(&self, other: &OS) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl Eq for OS
[src]
impl Eq for OS
impl Ord for OS
[src]
impl Ord for OS
fn cmp(&self, other: &OS) -> Ordering | [src] |
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
impl PartialOrd<OS> for OS
[src]
impl PartialOrd<OS> for OS
fn partial_cmp(&self, other: &OS) -> Option<Ordering> | [src] |
| 1.0.0 [src] |
This method tests less than (for self
and other
) and is used by the <
operator. Read more
| 1.0.0 [src] |
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
| 1.0.0 [src] |
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
| 1.0.0 [src] |
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Clone for OS
[src]
impl Clone for OS
fn clone(&self) -> OS | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for OS
[src]
impl Debug for OS
impl Hash for OS
[src]
impl Hash for OS
fn hash<__H: Hasher>(&self, state: &mut __H) | [src] |
fn hash_slice<H>(data: &[Self], state: &mut H) where | 1.3.0 [src] |
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for OS
[src]
impl FromStr for OS
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,