Trait ResourcePath

Source
pub trait ResourcePath {
    // Required method
    fn path(&self) -> &str;

    // Provided method
    fn unquote(s: &str) -> Cow<'_, str> { ... }
}

Required Methods§

Source

fn path(&self) -> &str

Provided Methods§

Source

fn unquote(s: &str) -> Cow<'_, str>

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.

Implementations on Foreign Types§

Source§

impl ResourcePath for String

Source§

fn path(&self) -> &str

Source§

impl ResourcePath for Uri

Source§

fn path(&self) -> &str

Source§

fn unquote(s: &str) -> Cow<'_, str>

Source§

impl ResourcePath for ByteString

Source§

fn path(&self) -> &str

Source§

impl<'a> ResourcePath for &'a str

Source§

fn path(&self) -> &str

Source§

impl<'a, T: ResourcePath> ResourcePath for &'a T

Source§

fn path(&self) -> &str

Implementors§