pub trait IntoDestination {
// Required method
fn into_destination(self) -> Result<Destination, Error>;
}Expand description
One output a write operation can produce.
A string or path names the file or directory to write. A Destination
passes through, which is how a memory destination and its artifact root
name reach the same operations as a file name.
A caller’s own output 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 output.
Required Methods§
Sourcefn into_destination(self) -> Result<Destination, Error>
fn into_destination(self) -> Result<Destination, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".