try_traits/ops.rs
1//! Try traits for [`core::ops`].
2//!
3//! This is quite useful when you want to perform a logical operation on two values, but there's the
4//! possibility of the operation failing.
5//!
6//! Note that none of these actually change how Rust syntax works: You'll need to do
7//! `12.try_add(13)?`.
8mod arith;
9mod bit;
10mod index;
11
12// `deref` is missing because `try_deref` makes no sense---the whole point is it's infallible
13// `function` is missing because you simply change the return type
14// `range` is missing bc the only triat is `RangeBounds`, but if there's a valid use i'll add it.
15
16pub use arith::*;
17pub use bit::*;
18pub use index::*;