Skip to main content

IntoDestination

Trait IntoDestination 

Source
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§

Source

fn into_destination(self) -> Result<Destination, Error>

Resolve the output.

§Errors

The output cannot be named.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoDestination for &Path

Source§

impl IntoDestination for &PathBuf

Source§

impl IntoDestination for &String

Source§

impl IntoDestination for &str

Source§

impl IntoDestination for PathBuf

Source§

impl IntoDestination for String

Implementors§