Skip to main content

ResourcePath

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".

Implementations on Foreign Types§

Source§

impl ResourcePath for &str

Source§

fn path(&self) -> &str

Source§

impl ResourcePath for ByteString

Source§

fn path(&self) -> &str

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<T: ResourcePath> ResourcePath for &T

Source§

fn path(&self) -> &str

Implementors§