This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::mem::{self, ManuallyDrop}; | |
use std::ptr; | |
/// Traverse the vector in the given order. The vector will be consumed, and its | |
/// elements will be moved in when calling the closure. `order` must contain all | |
/// values in the range `0..vec.len()` without repetition or omission, but the | |
/// order of elements can be arbitrary. | |
/// | |
/// # Example | |
/// ``` |