Trait SpecCopy
pub trait SpecCopy: Read
Required Methods
fn copy<R: Read + ?Sized, W: Write + ?Sized>(_reader: &mut R, _writer: &mut W) -> Result<CopyState>Attempt to copy from this reader to the provided writer using a specialized process.
Note that this function does not take
selfas a parameter, and instead is passed a genericReadtypeR. This allows theSelftype to provide specialized implementations for any combination ofReadandWritetypes. However, in practiceSelfand types wrappingSelfwill be passed as thereaderargument.As of time of writing,
&mut R,Take<R>, andBufReader<R>will forward toRfor a specialized copy implementation.