pub struct PlatformInfo {
pub os_family: OsFamily,
pub arch: CpuArchitecture,
pub simd_support: SimdSupport,
pub endianness: Endianness,
pub path_separator: char,
pub max_path_length: usize,
pub page_size: usize,
pub memory_mapping_support: bool,
pub fp_behavior: FloatingPointBehavior,
}Expand description
Platform information detected at runtime
Fields§
§os_family: OsFamilyOperating system family
arch: CpuArchitectureCPU architecture
simd_support: SimdSupportAvailable SIMD instruction sets
endianness: EndiannessEndianness of the target platform
path_separator: charNative path separator
max_path_length: usizeMaximum file path length
page_size: usizeDefault memory page size
memory_mapping_support: boolWhether the platform supports memory-mapped files
fp_behavior: FloatingPointBehaviorDefault floating-point precision behavior
Trait Implementations§
Source§impl Clone for PlatformInfo
impl Clone for PlatformInfo
Source§fn clone(&self) -> PlatformInfo
fn clone(&self) -> PlatformInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlatformInfo
impl Debug for PlatformInfo
Source§impl PartialEq for PlatformInfo
impl PartialEq for PlatformInfo
impl Eq for PlatformInfo
impl StructuralPartialEq for PlatformInfo
Auto Trait Implementations§
impl Freeze for PlatformInfo
impl RefUnwindSafe for PlatformInfo
impl Send for PlatformInfo
impl Sync for PlatformInfo
impl Unpin for PlatformInfo
impl UnwindSafe for PlatformInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more