webc

Trait ToPathSegments

Source
pub trait ToPathSegments {
    // Required method
    fn to_path_segments(&self) -> Result<PathSegments, PathSegmentError>;
}
Expand description

Convert something into PathSegments.

There are some assumptions about this conversion process:

  • All paths are absolute
  • Internal .’s and ..’s are resolved

Required Methods§

Implementations on Foreign Types§

Source§

impl ToPathSegments for str

Source§

impl ToPathSegments for String

Source§

impl ToPathSegments for Vec<PathSegment>

Source§

impl ToPathSegments for Path

Source§

impl ToPathSegments for PathBuf

Source§

impl ToPathSegments for [&str]

Source§

impl ToPathSegments for [PathSegment]

Source§

impl<T> ToPathSegments for &T
where T: ToPathSegments + ?Sized,

Source§

impl<T> ToPathSegments for Box<T>
where T: ToPathSegments + ?Sized,

Source§

impl<T> ToPathSegments for Rc<T>
where T: ToPathSegments + ?Sized,

Source§

impl<T> ToPathSegments for Arc<T>
where T: ToPathSegments + ?Sized,

Source§

impl<const N: usize> ToPathSegments for [&str; N]

Implementors§