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: OsFamily
Operating system family
arch: CpuArchitecture
CPU architecture
simd_support: SimdSupport
Available SIMD instruction sets
endianness: Endianness
Endianness of the target platform
path_separator: char
Native path separator
max_path_length: usize
Maximum file path length
page_size: usize
Default memory page size
memory_mapping_support: bool
Whether the platform supports memory-mapped files
fp_behavior: FloatingPointBehavior
Default 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 · Source§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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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