pub fn insert(&mut self, idx: usize, element: T) {
        assert!(
            idx >= self.next_expected_idx,
            "Can't insert the element with index lower than the next expected one"
        );
        self.elements.insert(idx, element);
    }
/// Inserts an element to the queue given its index.
Inserts an element to the queue given its index.
Inserts an element to the queue given its index .
pub fn insert(&mut self, idx: usize, element: T) {
        assert!(
            idx >= self.next_expected_idx,
            "Can't insert the element with index lower than the next expected one"
        );
        self.elements.insert(idx, element);
    }
pub fn insert ( & mut self , idx : usize , element : T ) { assert ! ( idx self next_expected_idx " " ) ; self . elements . insert ( idx , element ) ; }
Inserts an element to the queue given its index.
Inserts an element to the queue given its index .
&mut self
idx
usize
element
T