#[repr(C)]
#[non_exhaustive]
pub enum NSTDOperatingSystem {
Show 21 variants NSTD_OPERATING_SYSTEM_UNKNOWN, NSTD_OPERATING_SYSTEM_ANDROID, NSTD_OPERATING_SYSTEM_CUDA, NSTD_OPERATING_SYSTEM_DRAGONFLY, NSTD_OPERATING_SYSTEM_EMSCRIPTEN, NSTD_OPERATING_SYSTEM_FREE_BSD, NSTD_OPERATING_SYSTEM_FUCHSIA, NSTD_OPERATING_SYSTEM_HAIKU, NSTD_OPERATING_SYSTEM_HERMIT, NSTD_OPERATING_SYSTEM_ILLUMOS, NSTD_OPERATING_SYSTEM_IOS, NSTD_OPERATING_SYSTEM_LINUX, NSTD_OPERATING_SYSTEM_MACOS, NSTD_OPERATING_SYSTEM_NET_BSD, NSTD_OPERATING_SYSTEM_OPEN_BSD, NSTD_OPERATING_SYSTEM_REDOX, NSTD_OPERATING_SYSTEM_SOLARIS, NSTD_OPERATING_SYSTEM_TVOS, NSTD_OPERATING_SYSTEM_WASI, NSTD_OPERATING_SYSTEM_WINDOWS, NSTD_OPERATING_SYSTEM_VXWORKS,
}
Expand description

Represents an operating system.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

NSTD_OPERATING_SYSTEM_UNKNOWN

An unknown platform.

NSTD_OPERATING_SYSTEM_ANDROID

The Android platform.

NSTD_OPERATING_SYSTEM_CUDA

The CUDA platform.

NSTD_OPERATING_SYSTEM_DRAGONFLY

The Dragonfly platform.

NSTD_OPERATING_SYSTEM_EMSCRIPTEN

The EMSCRIPTEN platform.

NSTD_OPERATING_SYSTEM_FREE_BSD

The FreeBSD platform.

NSTD_OPERATING_SYSTEM_FUCHSIA

The Fuchsia platform.

NSTD_OPERATING_SYSTEM_HAIKU

The Haiku platform.

NSTD_OPERATING_SYSTEM_HERMIT

The Hermit platform.

NSTD_OPERATING_SYSTEM_ILLUMOS

The Illumos platform.

NSTD_OPERATING_SYSTEM_IOS

The IOS platform.

NSTD_OPERATING_SYSTEM_LINUX

The Linux platform.

NSTD_OPERATING_SYSTEM_MACOS

The macOS platform.

NSTD_OPERATING_SYSTEM_NET_BSD

The NetBSD platform.

NSTD_OPERATING_SYSTEM_OPEN_BSD

The OpenBSD platform.

NSTD_OPERATING_SYSTEM_REDOX

The Redox platform.

NSTD_OPERATING_SYSTEM_SOLARIS

The Solaris platform.

NSTD_OPERATING_SYSTEM_TVOS

The tvOS platform.

NSTD_OPERATING_SYSTEM_WASI

The WASI platform.

NSTD_OPERATING_SYSTEM_WINDOWS

The Windows platform.

NSTD_OPERATING_SYSTEM_VXWORKS

The VxWorks platform.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.