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().
Required Methods§
unsafe fn spec_extend_from_within(&mut self, src: Range<usize>)
unsafe fn spec_prepend_from_within(&mut self, src: Range<usize>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".