mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 18:13:58 +02:00
add checked math wrapper
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
98d8e5c63c
commit
80832cb0bb
2 changed files with 49 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
|||
mod expected;
|
||||
mod tried;
|
||||
|
||||
use std::{cmp, convert::TryFrom};
|
||||
|
||||
pub use checked_ops::checked_ops;
|
||||
|
||||
pub use self::expected::Expected;
|
||||
pub use self::{expected::Expected, tried::Tried};
|
||||
use crate::{debug::type_name, err, Err, Error, Result};
|
||||
|
||||
/// Checked arithmetic expression. Returns a Result<R, Error::Arithmetic>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue