Struct snapbox::path::PathFixture
source · [−]pub struct PathFixture(_);
Expand description
Working directory for tests
Implementations
sourceimpl 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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more