Struct snapbox::path::PathFixture
source · pub struct PathFixture(/* private fields */);
Expand description
Working directory for tests
Implementations§
source§impl PathFixture
impl PathFixture
pub fn none() -> Self
pub fn immutable(target: &Path) -> Self
pub fn mutable_temp() -> Result<Self, Error>
Available on crate feature
path
only.pub fn mutable_at(target: &Path) -> Result<Self, Error>
Available on crate feature
path
only.pub fn with_template(self, template_root: &Path) -> Result<Self, Error>
Available on crate feature
path
only.pub fn is_mutable(&self) -> bool
pub fn path(&self) -> Option<&Path>
Trait Implementations§
source§impl Debug for PathFixture
impl Debug for PathFixture
Auto Trait Implementations§
impl RefUnwindSafe for PathFixture
impl Send for PathFixture
impl Sync for PathFixture
impl Unpin for PathFixture
impl UnwindSafe for PathFixture
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