rust why is usize needed code example Example: why %u is used for ? %d is used to specify an integer, %u is used to specify an unsigned integer .