Struct std::fs::PathSegment
A filesystem path segment
Fields
-
kind: PathSegmentKind
-
value: &[u8]
Methods
impl PathSegment { ... }
-
fn root() -> PathSegment
Returns the root path segment (e.g.
/
on Unix) -
fn normal(value: &[u8]) -> PathSegment
Returns a normal path segment (e.g. a directory or file name)
-
fn current_dir() -> PathSegment
Returns path segment representing current directory (".")
-
fn parent_dir() -> PathSegment
Returns path segment representing parent directory ("..")
-
fn equals(self: &PathSegment, other: &PathSegment) -> bool
-
fn fmt<F>(self: &PathSegment, f: &mut F) -> Result
F: Formatter<F>
Mixins
impl PathSegment { ... }
-
mixin Equatable<PathSegment>
-
Returns
false
if arguments are equal,true
otherwise