mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-28 02:38:30 +00:00
add Expected trait to utils; use (already transitive) num-traits.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
7e4453620e
commit
1a71798859
5 changed files with 60 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue