Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/const-oid/src/checked.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / const-oid / src / checked.rs` 11 lines ยท 264 bytes Raw Blame History 1 //! Checked arithmetic helpers. 2 3 /// `const fn`-friendly checked addition helper. 4 macro_rules! checked_add { 5 ($a:expr, $b:expr) => { 6 match $a.checked_add($b) { 7 Some(n) => n, 8 None => return Err(Error::Length), 9 } 10 }; 11 }