pub struct SourceFile(_);
Expand description

Represents path to the file on the disk Directories shouldn’t be put here, as resolution for files differs from resolution for directories:

When file is being resolved from SourceFile(a/b/c), it should be resolved to SourceFile(a/b/file), however if it is being resolved from SourceDirectory(a/b/c), then it should be resolved to SourceDirectory(a/b/c/file)

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method should be checked by resolver before panicking with bad SourcePath input if true - then resolver may threat this path as default, and default is usally a CWD
Define how to visit values referred by this value. Read more
Whether this type should be tracked by the collector. Read more

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
Checks if this value is equivalent to the given key. 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.

Converts the given value to a String. 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.