Struct sortery::structs::File[][src]

pub struct File {
    pub pathbuf: PathBuf,
}
Expand description

The struct used in all the cross-function path functionality

Fields

pathbuf: PathBuf

Implementations

Return an instance of File with the same path as ours

Return a new instance of File, with path as the path.

Return a new instance of File, with path as the path.

Return true if our path exists

Return a String representing the extension of our path

Return the file name of our path

Return a String representing the file stem of our path

Return the joining of our path and path as a File.

Return the joining of our path and path.

Return a new instance of File from from

Return an instance of PathBuf representing our path

Return a String representing our path

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.