[no description]
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6193887..2c0c289 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,7 @@
#![feature(
+ lazy_type_alias,
+ try_trait_v2_residual,
+ try_trait_v2,
type_alias_impl_trait,
tuple_trait,
import_trait_associated_functions,
@@ -20,10 +23,8 @@ pub use iterator::{
IteratorOfTuplesWithF,
};
pub mod fns;
-mod option;
-pub use option::{
- OptionOfMutRefToTuple, OptionOfRefToTuple, OptionOfTuple,
-};
+mod r#try;
+pub use r#try::{TryRefMutTuple, TryRefTuple, TryTuple};
/// Reverse a tuple.
pub trait Reverse: Tupl {
type Reversed: Tupl;
@@ -201,11 +202,11 @@ pub trait Tupl: core::marker::Tuple {
last: Self::Last,
) -> Self;
- type AsRef<'a>
+ type AsRef<'a>: Tupl
where
Self: 'a;
fn as_ref(&self) -> Self::AsRef<'_>;
- type AsMut<'a>
+ type AsMut<'a>: Tupl
where
Self: 'a;
fn as_mut(&mut self) -> Self::AsMut<'_>;