add Expected trait to utils; use (already transitive) num-traits.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2025-01-01 23:28:01 -05:00
1 parent 7e4453620e
commit 1a71798859
5 files changed
+60

No files matched your search

+3
View File
@@ -1,7 +1,10 @@
mod expected;
use std::{cmp, convert::TryFrom};
pub use checked_ops::checked_ops;
pub use self::expected::Expected;
use crate::{debug::type_name, err, Err, Error, Result};
/// Checked arithmetic expression. Returns a Result<R, Error::Arithmetic>