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§
Sourcefn to_path_segments(&self) -> Result<PathSegments, PathSegmentError>
fn to_path_segments(&self) -> Result<PathSegments, PathSegmentError>
Convert to PathSegments
.