@@ -1975,31 +1975,37 @@ pub trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
1975
1975
1976
1976
/// Returns a shared reference to the output at this location, if in
1977
1977
/// bounds.
1978
+ #[ doc( hidden) ]
1978
1979
#[ unstable( feature = "slice_index_methods" , issue = "0" ) ]
1979
1980
fn get ( self , slice : & T ) -> Option < & Self :: Output > ;
1980
1981
1981
1982
/// Returns a mutable reference to the output at this location, if in
1982
1983
/// bounds.
1984
+ #[ doc( hidden) ]
1983
1985
#[ unstable( feature = "slice_index_methods" , issue = "0" ) ]
1984
1986
fn get_mut ( self , slice : & mut T ) -> Option < & mut Self :: Output > ;
1985
1987
1986
1988
/// Returns a shared reference to the output at this location, without
1987
1989
/// performing any bounds checking.
1990
+ #[ doc( hidden) ]
1988
1991
#[ unstable( feature = "slice_index_methods" , issue = "0" ) ]
1989
1992
unsafe fn get_unchecked ( self , slice : & T ) -> & Self :: Output ;
1990
1993
1991
1994
/// Returns a mutable reference to the output at this location, without
1992
1995
/// performing any bounds checking.
1996
+ #[ doc( hidden) ]
1993
1997
#[ unstable( feature = "slice_index_methods" , issue = "0" ) ]
1994
1998
unsafe fn get_unchecked_mut ( self , slice : & mut T ) -> & mut Self :: Output ;
1995
1999
1996
2000
/// Returns a shared reference to the output at this location, panicking
1997
2001
/// if out of bounds.
2002
+ #[ doc( hidden) ]
1998
2003
#[ unstable( feature = "slice_index_methods" , issue = "0" ) ]
1999
2004
fn index ( self , slice : & T ) -> & Self :: Output ;
2000
2005
2001
2006
/// Returns a mutable reference to the output at this location, panicking
2002
2007
/// if out of bounds.
2008
+ #[ doc( hidden) ]
2003
2009
#[ unstable( feature = "slice_index_methods" , issue = "0" ) ]
2004
2010
fn index_mut ( self , slice : & mut T ) -> & mut Self :: Output ;
2005
2011
}
0 commit comments