Further DSTify Index traits
This commit is contained in:
parent
ff88510535
commit
9f1217da91
@ -638,7 +638,7 @@ shr_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64)
|
||||
* ```
|
||||
*/
|
||||
#[lang="index"]
|
||||
pub trait Index<Index, Sized? Result> for Sized? {
|
||||
pub trait Index<Sized? Index, Sized? Result> for Sized? {
|
||||
/// The method for the indexing (`Foo[Bar]`) operation
|
||||
fn index<'a>(&'a self, index: &Index) -> &'a Result;
|
||||
}
|
||||
@ -669,7 +669,7 @@ pub trait Index<Index, Sized? Result> for Sized? {
|
||||
* ```
|
||||
*/
|
||||
#[lang="index_mut"]
|
||||
pub trait IndexMut<Index, Result> for Sized? {
|
||||
pub trait IndexMut<Sized? Index, Result> for Sized? {
|
||||
/// The method for the indexing (`Foo[Bar]`) operation
|
||||
fn index_mut<'a>(&'a mut self, index: &Index) -> &'a mut Result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user