pub struct FixtureTree { /* private fields */ }Expand description
The top-level handle returned by Config::build.
Call FixtureTree::generate_fixtures to write the generated Rust source
file to disk.
Implementations§
Source§impl FixtureTree
impl FixtureTree
Sourcepub fn new(config: Config) -> Result<Self>
pub fn new(config: Config) -> Result<Self>
Create a new FixtureTree by scanning the configured source directory.
Sourcepub fn generate_fixtures(&self) -> Result<()>
pub fn generate_fixtures(&self) -> Result<()>
Generate the Rust source file and write it to the configured output path.
§Errors
Returns an error if the output file cannot be written.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FixtureTree
impl RefUnwindSafe for FixtureTree
impl Send for FixtureTree
impl Sync for FixtureTree
impl Unpin for FixtureTree
impl UnsafeUnpin for FixtureTree
impl UnwindSafe for FixtureTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more