Trait cli_xtask::fs::ToRelative

source ·
pub trait ToRelative {
    type Output: Display;

    // Required method
    fn to_relative(self) -> Self::Output;
}
Expand description

Convert a path to a path relative to the current directory which implements Display.

Required Associated Types§

source

type Output: Display

Tye type of the converted path that implements Display.

Required Methods§

source

fn to_relative(self) -> Self::Output

Convert the path to a path relative to the current directory which implements Display.

Implementations on Foreign Types§

source§

impl<'a> ToRelative for &'a Utf8PathBuf

§

type Output = Cow<'a, Utf8Path>

source§

fn to_relative(self) -> Self::Output

source§

impl<'a> ToRelative for &'a Utf8Path

§

type Output = Cow<'a, Utf8Path>

source§

fn to_relative(self) -> Self::Output

Implementors§