You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,8 @@ The library provides several traits for working with tuples:
48
48
-[`SingletonTuple`](https://docs.rs/tuplities-len/latest/tuplities_len/trait.SingletonTuple.html): A marker trait implemented for single-element tuples `(T,)` with `TupleLen<Idx = U1>`.
49
49
-[`TupleIndex<Idx>`](https://docs.rs/tuplities-index/latest/tuplities_index/trait.TupleIndex.html): Provides an [`index()`](https://docs.rs/tuplities-index/latest/tuplities_index/trait.TupleIndex.html#tymethod.index) method to access the element at the specified index [`typenum`](https://docs.rs/typenum/latest/typenum/)'s `Idx` of the tuple.
50
50
-[`TupleIndexMut<Idx>`](https://docs.rs/tuplities-index/latest/tuplities_index/trait.TupleIndexMut.html): Provides an [`index_mut()`](https://docs.rs/tuplities-index/latest/tuplities_index/trait.TupleIndexMut.html#tymethod.index_mut) method to access a mutable reference to the element at the specified index [`typenum`](https://docs.rs/typenum/latest/typenum/)'s `Idx` of the tuple.
51
-
-[`Row<Idx>`](https://docs.rs/tuplities-row/latest/tuplities_row/trait.Row.html): Provides a [`row()`](https://docs.rs/tuplities-row/latest/tuplities_row/trait.Row.html#tymethod.row) method to access elements at the specified index across all tuples in a tuple of tuples (row-wise indexing).
52
-
-[`RowMut<Idx>`](https://docs.rs/tuplities-row/latest/tuplities_row/trait.RowMut.html): Provides a [`row_mut()`](https://docs.rs/tuplities-row/latest/tuplities_row/trait.RowMut.html#tymethod.row_mut) method to access mutable elements at the specified index across all tuples in a tuple of tuples (mutable row-wise indexing).
51
+
-[`TupleRow<Idx>`](https://docs.rs/tuplities-row/latest/tuplities_row/trait.TupleRow.html): Provides a [`tuple_row()`](https://docs.rs/tuplities-row/latest/tuplities_row/trait.TupleRow.html#tymethod.tuple_row) method to access elements at the specified index across all tuples in a tuple of tuples (row-wise indexing).
52
+
-[`TupleRowMut<Idx>`](https://docs.rs/tuplities-row/latest/tuplities_row/trait.TupleRowMut.html): Provides a [`tuple_row_mut()`](https://docs.rs/tuplities-row/latest/tuplities_row/trait.TupleRowMut.html#tymethod.tuple_row_mut) method to access mutable elements at the specified index across all tuples in a tuple of tuples (mutable row-wise indexing).
/// A trait for mutable indexing rows in tuples of tuples.
38
38
///
39
39
/// This trait allows mutable access to elements at a specific index across all tuples in a tuple of tuples.
40
-
/// For a tuple of tuples like `((A, B), (C, D))`, `RowMut<U0>` would return `(&mut A, &mut C)` and `RowMut<U1>` would return `(&mut B, &mut D)`.
40
+
/// For a tuple of tuples like `((A, B), (C, D))`, `TupleRowMut<U0>` would return `(&mut A, &mut C)` and `TupleRowMut<U1>` would return `(&mut B, &mut D)`.
41
41
///
42
42
/// Each inner tuple must implement `TupleIndexMut<Idx>`, and the returned row tuple implements `TupleMut`.
43
43
///
44
44
/// # Examples
45
45
///
46
46
/// ```
47
-
/// use tuplities_row::RowMut;
47
+
/// use tuplities_row::TupleRowMut;
48
48
/// use typenum::U0;
49
49
///
50
50
/// let mut matrix = ((1, 2), (3, 4), (5, 6));
51
-
/// let first_row = RowMut::<U0>::row_mut(&mut matrix);
51
+
/// let first_row = TupleRowMut::<U0>::tuple_row_mut(&mut matrix);
0 commit comments