pub struct Config { /* private fields */ }
Expand description
The Config structure has four fields
- the path of the directory you want to look up
- the number of directories
- the number of files
- the total number of them.
Implementations§
Source§impl Config
impl Config
Sourcepub fn new() -> Result<Config, String>
pub fn new() -> Result<Config, String>
If an existing directory is specified, the Ok-wrapped Config structure is returned. Assign the directory specified by the first argument to the search_dir field of the Config structure. All other fields are assigned a 0.(call the default method)
§Panics
An error is returned when the first argument is a file or a non-existent directory is specified.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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