pub fn push(&mut self, item: T) {
        if self.capacity() == 0 {
            return;
        }

        if self.is_full() {
            self.inner_mut().remove(0);
        }

        self.inner_mut().push(item);
    }
/// Adds a new element to the RollingVec.
/// If adding an element will cause the length to exceed the capacity, the first element is removed.
Adds a new element to the RollingVec.
If adding an element will cause the length to exceed the capacity, the first element is removed.
Adds a new element to the RollingVec . If adding an element will cause the length to exceed the capacity the first element is removed .
pub fn push(&mut self, item: T) {
        if self.capacity() == 0 {
            return;
        }
        if self.is_full() {
            self.inner_mut().remove(0);
        }
        self.inner_mut().push(item);
    }
pub fn push ( & mut self , item : T ) { if self . capacity ( ) == 0 { return ; } if self . is_full ( ) { self . inner_mut ( ) . remove ( 0 ) ; } self . inner_mut ( ) . push ( item ) ; }
Adds a new element to the RollingVec.
Adds a new element to the RollingVec .
&mut self
item
T
&mut self
item
T