mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Remove IndexSlice::convert_index_type
.
This commit is contained in:
parent
8b18c16ecb
commit
2433542b41
@ -137,10 +137,6 @@ impl<I: Idx, T> IndexVec<I, T> {
|
||||
self.raw.truncate(a)
|
||||
}
|
||||
|
||||
pub fn convert_index_type<Ix: Idx>(self) -> IndexVec<Ix, T> {
|
||||
IndexVec::from_raw(self.raw)
|
||||
}
|
||||
|
||||
/// Grows the index vector so that it contains an entry for
|
||||
/// `elem`; if that is already true, then has no
|
||||
/// effect. Otherwise, inserts new values as needed by invoking
|
||||
|
Loading…
Reference in New Issue
Block a user