[no description]
release
| -rw-r--r-- | Cargo.toml | 5 | ||||
| -rw-r--r-- | src/fns.rs | 2 | ||||
| -rw-r--r-- | src/iterator.rs | 2 | ||||
| -rw-r--r-- | src/lib.rs | 2 | ||||
| -rw-r--r-- | src/try.rs | 4 |
5 files changed, 7 insertions, 8 deletions
@@ -1,6 +1,6 @@ [package] name = "ttools" -version = "0.1.1" +version = "0.1.2" license = "MIT" edition = "2024" authors = ["bend-n <[email protected]>"] @@ -8,3 +8,6 @@ description = "tuple utilities" repository = "https://git.bendn.org/ttools" keywords = ["tuple", "utilities"] categories = ["algorithms", "no-std"] + +[package.metadata.docs.rs] +rustdoc-args = ["--generate-link-to-definition"] @@ -1,5 +1,3 @@ -use core::ops::Add; - use crate::{Pick, RePick, Tupl}; pub fn on<const N: usize, U, T: Tupl + Pick<N>>( diff --git a/src/iterator.rs b/src/iterator.rs index 9d47e46..6343755 100644 --- a/src/iterator.rs +++ b/src/iterator.rs @@ -238,7 +238,7 @@ ref_traits!( as_mut, mut ); -/// Required to call [`IteratorOfTuples::filter_map_on`] +/// Required to call [`IteratorOfTuplesWithF::filter_map_at`] pub fn hrf<T, U, F: for<'a> Fn(&'a T) -> U>(f: F) -> F { f } @@ -9,7 +9,7 @@ iter_next_chunk )] #![no_std] -#![allow(mixed_script_confusables, confusable_idents)] +#![allow(mixed_script_confusables, confusable_idents, incomplete_features)] //!  //! //! start with [`Tupl`]. @@ -37,14 +37,12 @@ pub trait TryTuple<T: Tupl>: Try<Output = T> { } } } + pub type ChangeOutputType<T: Try<Residual: Residual<V>>, V> = <T::Residual as Residual<V>>::TryType; impl<T: Tupl, Tr: Try<Output = T>> TryTuple<T> for Tr {} -// impl<T: Tupl, Tr: Try<Output = T>> TryTuple<T> for Tr {} -// impl<T: Tupl, Tr: Try<Output = T>> TryTuple<T> for Tr {} - option_of_ref_to_tuple!( TryRefTuple, OptionOfRefToTupleWithF, |