pub struct DirBuilder { /* private fields */ }Expand description
Dir configuration.
Implementations§
Source§impl DirBuilder
impl DirBuilder
Sourcepub fn printable_names(self, value: bool) -> Self
pub fn printable_names(self, value: bool) -> Self
Generate files with printable names, i.e. names consisting only from printable characters.
Useful to test CLI applications.
Sourcepub fn file_types<I>(self, file_types: I) -> Selfwhere
I: IntoIterator<Item = FileType>,
pub fn file_types<I>(self, file_types: I) -> Selfwhere
I: IntoIterator<Item = FileType>,
Which file types to generate?
By default any Unix file type can be generated.
Sourcepub fn create(self, u: &mut Unstructured<'_>) -> Result<Dir>
pub fn create(self, u: &mut Unstructured<'_>) -> Result<Dir>
Create a temprary directory with random contents.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirBuilder
impl RefUnwindSafe for DirBuilder
impl Send for DirBuilder
impl Sync for DirBuilder
impl Unpin for DirBuilder
impl UnwindSafe for DirBuilder
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