Trait 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 Utf8Path

Source§

impl<'a> ToRelative for &'a Utf8PathBuf

Implementors§