pub fn max_depth(mut self, depth: usize) -> Self {
        self.opts.max_depth = depth;
        if self.opts.max_depth < self.opts.min_depth {
            self.opts.max_depth = self.opts.min_depth;
        }
        self
    }
/// Set the maximum depth of entries yield by the iterator.
///
/// The smallest depth is `0` and always corresponds to the path given
/// to the `new` function on this type. Its direct descendents have depth
/// `1`, and their descendents have depth `2`, and so on.
///
/// Note that this will not simply filter the entries of the iterator, but
/// it will actually avoid descending into directories when the depth is
/// exceeded.
Set the maximum depth of entries yield by the iterator.
The smallest depth is `0` and always corresponds to the path given
to the `new` function on this type. Its direct descendents have depth
`1`, and their descendents have depth `2`, and so on.

Note that this will not simply filter the entries of the iterator, but
it will actually avoid descending into directories when the depth is
exceeded.
Set the maximum depth of entries yield by the iterator . The smallest depth is ` 0 ` and always corresponds to the path given to the ` new ` function on this type . Its direct descendents have depth ` 1 ` and their descendents have depth ` 2 ` and so on . Note that this will not simply filter the entries of the iterator but it will actually avoid descending into directories when the depth is exceeded .
pub fn max_depth(mut self, depth: usize) -> Self {
        self.opts.max_depth = depth;
        if self.opts.max_depth < self.opts.min_depth {
            self.opts.max_depth = self.opts.min_depth;
        }
        self
    }
pub fn max_depth ( mut self , depth : usize ) -> Self { self . opts . max_depth = depth ; if self . opts . max_depth < self . opts . min_depth { self . opts . max_depth = self . opts . min_depth ; } self }
Set the maximum depth of entries yield by the iterator.
Set the maximum depth of entries yield by the iterator .
mut self
depth
usize
mut self
depth
usize