pub fn clear(&mut self) {
        *self.len.get_mut() = 0;
        *self.cur_seg.get_mut() = 0;

        for seg in self.segs.as_mut() {
            seg.clear()
        }
    }
/// Clear all elements in `self`.
///
/// Drops all elements stored in `self` without losing the allocated space.
Clear all elements in `self`.
Drops all elements stored in `self` without losing the allocated space.
Clear all elements in ` self ` . Drops all elements stored in ` self ` without losing the allocated space .
pub fn clear(&mut self) {
        *self.len.get_mut() = 0;
        *self.cur_seg.get_mut() = 0;
        for seg in self.segs.as_mut() {
            seg.clear()
        }
    }
pub fn clear ( & mut self ) { * self . len . get_mut ( ) = 0 ; * self . cur_seg . get_mut ( ) = 0 ; for seg in self . segs . as_mut ( ) { seg . clear ( ) } }
Clear all elements in `self`.
Clear all elements in ` self ` .
&mut self
&mut self