pub fn available_memory_bytes() -> Option<u64>Expand description
Currently-available physical memory in bytes, or None when it can’t be
determined on this platform.
Linux/Android parse MemAvailable from /proc/meminfo — the kernel’s own
estimate of what can be allocated without swapping, which is more honest for
a fit check than MemFree. Other platforms (macOS, iOS, wasm) return None
today; consumers there rely on their own memory gate.