Trait GtRelativePath

Source
pub trait GtRelativePath {
    // Required methods
    fn new(path: RelativePathBuf) -> Self;
    fn relative_path(&self) -> &RelativePathBuf;

    // Provided methods
    fn as_str(&self) -> &str { ... }
    fn with_extension<Str: AsRef<str>>(&self, ext: Str) -> Self
       where Self: Sized { ... }
    fn join_path(&self, path: &RelativePathBuf) -> Self
       where Self: Sized { ... }
    fn parent(&self) -> Option<Self>
       where Self: Sized { ... }
    fn parents(&self) -> Successors<Self, fn(&Self) -> Option<Self>>
       where Self: Sized + Clone { ... }
}

Required Methods§

Provided Methods§

Source

fn as_str(&self) -> &str

Source

fn with_extension<Str: AsRef<str>>(&self, ext: Str) -> Self
where Self: Sized,

Source

fn join_path(&self, path: &RelativePathBuf) -> Self
where Self: Sized,

Source

fn parent(&self) -> Option<Self>
where Self: Sized,

Source

fn parents(&self) -> Successors<Self, fn(&Self) -> Option<Self>>
where Self: Sized + Clone,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§