pub trait PutFromSliceAt<T>: PutAt<T> {
// Required method
fn put_cloning_from_slice_at(&mut self, src: &[T], offset: usize)
where T: Clone;
}Expand description
A trait for objects which provide dropping indexed write access to their values from a slice.
Required Methods§
Sourcefn put_cloning_from_slice_at(&mut self, src: &[T], offset: usize)where
T: Clone,
fn put_cloning_from_slice_at(&mut self, src: &[T], offset: usize)where
T: Clone,
Clones the elements from src into self, starting at offset, dropping the old values.
The length of src must be less than self.len - offset.
§Panics
This function will panic if the length of src is greater than self.len - offset.