pub struct DirectorySubspace { /* private fields */ }
Expand description

A DirectorySubspace represents the contents of a directory, but it also remembers the path with which it was opened and offers convenience methods to operate on the directory at that path. An instance of DirectorySubspace can be used for all the usual subspace operations. It can also be used to operate on the directory with which it was opened.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Creates or opens the subdirectory of this Directory located at path (creating parent directories, if necessary). Read more

Creates a subdirectory of this Directory located at path (creating parent directories if necessary). Read more

Opens the subdirectory of this Directory located at path.

Checks if the subdirectory of this Directory located at path exists.

Moves this Directory to the specified newAbsolutePath.

Moves the subdirectory of this Directory located at oldpath to newpath.

Removes the subdirectory of this Directory located at path and all of its subdirectories, as well as all of their contents.

Removes the subdirectory of this Directory located at path (if the path exists) and all of its subdirectories, as well as all of their contents.

List the subdirectories of this directory at a given subpath.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.