Type Alias ObjectStorePath
Source pub type ObjectStorePath = Path;
struct ObjectStorePath { }
Implementations
Parse a string as a Path
, returning a Error
if invalid,
as defined on the docstring for Path
Note: this will strip any leading /
or trailing /
Convert a filesystem path to a Path
relative to the filesystem root
This will return an error if the path contains illegal character sequences
as defined on the docstring for Path
or does not exist
Note: this will canonicalize the provided path, resolving any symlinks
Convert an absolute filesystem path to a Path
relative to the filesystem root
This will return an error if the path contains illegal character sequences,
as defined on the docstring for Path
, or base
is not an absolute path
Parse a url encoded string as a Path
, returning a Error
if invalid
This will return an error if the path contains illegal character sequences
as defined on the docstring for Path
Returns the last path segment containing the filename stored in this Path
Returns the extension of the file stored in this Path
, if any
Returns an iterator of the PathPart
of this Path
after prefix
Returns None
if the prefix does not match
Returns true if this Path
starts with prefix
Creates a new child of this Path
Trait Implementations
Converts this type into a shared reference of the (usually inferred) input type.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
Compares and returns the maximum of two values.
Read more
Compares and returns the minimum of two values.
Read more
Restrict a value to a certain interval.
Read more
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more
Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more