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