Trait webc::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§