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>

Object Safety§

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§