Trait AsUriPath

Source
pub trait AsUriPath {
    // Required method
    fn as_uri_path(&self) -> impl Iterator<Item = &str>;
}
Expand description

A component that represents Uri-Path options.

This is typically either of:

  • [&[str]]: the raw URI path components.
  • str: a URI refernce in path-absolute form (starting with a slash). It will produce its slash-separated segments, and end before the query identifier (question mark, ?) or the fragment identifier (hash sign, #) if any is present to stay within the regular URI conventions.

Required Methods§

Source

fn as_uri_path(&self) -> impl Iterator<Item = &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 AsUriPath for &str

Source§

fn as_uri_path(&self) -> impl Iterator<Item = &str>

Source§

impl<'b> AsUriPath for &[&'b str]

Source§

fn as_uri_path(&self) -> impl Iterator<Item = &str>

Implementors§