pub struct Fixture<T> { /* private fields */ }
Expand description
A fixture contains a file content and its absolute path.
Content type is determined by the loader function specified in
dir_test macro. If the loader is not specified, the default
content type is &'static str.
Returns the content of the fixture.
Returns the absolute path of the fixture.
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 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.