pub trait IntoSource {
// Required method
fn into_source(self) -> Result<Source, Error>;
}Expand description
One input a read operation can acquire.
A string or path names a file or directory to open. A byte buffer is
content already in memory, named MEMORY_SOURCE_NAME. A Source
passes through, so a source carrying named buffers or a widened
acquisition root reaches the same operations as a file name.
A caller’s own input type reaches the same operations by implementing it. It carries this one method and gains no further required method: options belong to the operation, not to the input.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".