Module cpp_to_rust_common::target
[−]
[src]
Types for expressing properties of different target platforms and platform-based conditions
Structs
Target |
Combined information about a target, as reported by configuration values of the Rust compiler. |
Enums
Arch |
CPU architecture, as reported by |
Condition |
Condition on properties of the target. Simple conditions
are considered true if the property of the current platform
is the same as the associated value of the enum. For
example, |
Endian |
CPU endianness, as reported by |
Env |
Further disambiguates the target platform with information about the ABI/libc,
as reported by |
Family |
Operating system family, as reported by |
OS |
Operating system, as reported by |
PointerWidth |
Pointer width in bits,
as reported by |
Functions
current_arch |
Returns current CPU architecture |
current_endian |
Returns current CPU endianness |
current_env |
Returns current platform disambiguation |
current_family |
Returns current operating system family |
current_os |
Returns current operating system |
current_pointer_width |
Returns current pointer width |
current_target |
Returns properties of the current target |