Struct iron_test::ProjectBuilder [] [src]

pub struct ProjectBuilder { /* fields omitted */ }

An RAII guard that controls a temporary directory of test files.

It is also a builder and is used to build up the temporary files, which are then deleted on drop.

Methods

impl ProjectBuilder
[src]

[src]

Create a ProjectBuilder that will manage a new temporary directory making use of the current name.

[src]

Get the root path of the temporary directory.

[src]

Add a new file to the temporary directory with the given contents.

[src]

Creates the project layout, based on current state of the builder

[src]

Creates the project layout, based on current state of the builder

Trait Implementations

impl Debug for ProjectBuilder
[src]

[src]

Formats the value using the given formatter.

impl Clone for ProjectBuilder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ProjectBuilder
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Drop for ProjectBuilder
[src]

[src]

Executes the destructor for this type. Read more