MIN in std::i16 - Rust (original) (raw)

std::i16

Constant MIN

1.0.0 · Source

pub const MIN: i16 = i16::MIN; // -32_768i16

👎Deprecating in a future version: replaced by the MIN associated constant on this type

Expand description

The smallest value that can be represented by this integer type. Use i16::MIN instead.

§Examples

// deprecated way
let min = std::i16::MIN;

// intended way
let min = i16::MIN;