Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Corelib
None
pub trait CheckedAdd
use core::num::traits::CheckedAdd; let result = 1_u8.checked_add(2); assert!(result == Some(3)); let result = 255_u8.checked_add(1); assert!(result == None); // Overflow
fn checked_add(self: T, v: T) -> Option
Was this page helpful?