pub trait Platform {
// Required methods
fn cpu_count(&self) -> usize;
fn total_memory(&self) -> u64;
fn halt(&self) -> !;
}Expand description
Top-level platform discovery and initialization.
Required Methods§
Sourcefn total_memory(&self) -> u64
fn total_memory(&self) -> u64
Return the total physical memory in bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".