W3cubDocs

/Rust

Constant std::usize::MAX

pub const MAX: usize = usize::MAX; // 18_446_744_073_709_551_615usize

The largest value that can be represented by this integer type. Use usize::MAX instead.

Examples

// deprecated way
let max = std::usize::MAX;

// intended way
let max = usize::MAX;

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/usize/constant.MAX.html