Remove IndexSlice::convert_index_type.

This commit is contained in:
Nicholas Nethercote 2023-11-13 17:00:48 +11:00
parent 8b18c16ecb
commit 2433542b41

View File

@ -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