[no description]
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -97,17 +97,6 @@ pub trait Pick<const N: usize>: Tupl { fn depict(self) -> (Self::L, Self::At, Self::R); } -pub trait RefIze { - type AsRef<'a> - where - Self: 'a; - type AsMut<'a> - where - Self: 'a; - fn as_ref(&self) -> Self::AsRef<'_>; - fn as_mut(&mut self) -> Self::AsMut<'_>; -} - pub trait RePick<const N: usize, T>: Pick<N> + Sized { type New: Tupl; fn unpick(l: Self::L, at: T, r: Self::R) -> Self::New; @@ -203,6 +192,16 @@ pub trait Tupl: core::marker::Tuple { inner: Self::Inner, last: Self::Last, ) -> Self; + + type AsRef<'a> + where + Self: 'a; + fn as_ref(&self) -> Self::AsRef<'_>; + type AsMut<'a> + where + Self: 'a; + fn as_mut(&mut self) -> Self::AsMut<'_>; + /// reconstruct; dont use directly fn cons(head: Self::Head, tail: Self::Tail) -> Self; /// retcurtsnoc; dont use directly |