Skip to main content

PortablePath

Trait PortablePath 

Source
pub trait PortablePath: Sized {
    // Required method
    fn parse(path: impl AsRef<str>) -> Result<Self, ParseError>;

    // Provided method
    fn parse_relative(path: impl AsRef<str>) -> Result<Self, ParseError> { ... }
}

Required Methods§

Source

fn parse(path: impl AsRef<str>) -> Result<Self, ParseError>

Provided Methods§

Source

fn parse_relative(path: impl AsRef<str>) -> Result<Self, ParseError>

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§