Skip to main content

total

Function total 

Source
pub fn total() -> u64
Available on iOS or Linux or macOS or Windows only.
Expand description

Get the total number of bytes of physical memory on this host.

ยงPanics

This function may panic if any of the underlying platform-specific syscalls fail.

Examples found in repository?
examples/print-system-memory.rs (line 5)
4fn main() {
5    println!("Currently available: {} bytes\nTotal: {} bytes", available(), total());
6}