trait SpecExtendFromWithin {
// Required methods
unsafe fn spec_extend_from_within(&mut self, src: Range<usize>);
unsafe fn spec_prepend_from_within(&mut self, src: Range<usize>);
}Expand description
Associated functions have the following preconditions:
srcneeds to be a valid range:src.start <= src.end <= self.len().- The buffer must have enough spare capacity:
self.capacity() - self.len() >= src.len().