pub trait CopyOrErr {
    fn copy_from_slice_or_err(&mut self, src: &Self) -> Result<(), ErrorCode>;
}

Required Methods

Copies a nonoverlapping slice from src to self. Returns Err(ErrorCode) if source and self are not the same length. This is a non-panicing version of slice::copy_from_slice.

Implementations on Foreign Types

Implementors