pub fn max_open(mut self, mut n: usize) -> Self {
        if n == 0 {
            n = 1;
        }
        self.opts.max_open = n;
        self
    }
/// Set the maximum number of simultaneously open file descriptors used
/// by the iterator.
///
/// `n` must be greater than or equal to `1`. If `n` is `0`, then it is set
/// to `1` automatically. If this is not set, then it defaults to some
/// reasonably low number.
///
/// This setting has no impact on the results yielded by the iterator
/// (even when `n` is `1`). Instead, this setting represents a trade off
/// between scarce resources (file descriptors) and memory. Namely, when
/// the maximum number of file descriptors is reached and a new directory
/// needs to be opened to continue iteration, then a previous directory
/// handle is closed and has its unyielded entries stored in memory. In
/// practice, this is a satisfying trade off because it scales with respect
/// to the *depth* of your file tree. Therefore, low values (even `1`) are
/// acceptable.
///
/// Note that this value does not impact the number of system calls made by
/// an exhausted iterator.
Set the maximum number of simultaneously open file descriptors used
by the iterator.

`n` must be greater than or equal to `1`.

This setting has no impact on the results yielded by the iterator
(even when `n` is `1`). Instead, this setting represents a trade off
between scarce resources (file descriptors) and memory. Namely, when
the maximum number of file descriptors is reached and a new directory
needs to be opened to continue iteration, then a previous directory
handle is closed and has its unyielded entries stored in memory. In
practice, this is a satisfying trade off because it scales with respect
to the *depth* of your file tree. Therefore, low values (even `1`) are
acceptable.

Note that this value does not impact the number of system calls made by
an exhausted iterator.
Set the maximum number of simultaneously open file descriptors used by the iterator . ` n ` must be greater than or equal to ` 1 ` . This setting has no impact on the results yielded by the iterator ( even when ` n ` is ` 1 ` ) . Instead this setting represents a trade off between scarce resources ( file descriptors ) and memory . Namely when the maximum number of file descriptors is reached and a new directory needs to be opened to continue iteration then a previous directory handle is closed and has its unyielded entries stored in memory . In practice this is a satisfying trade off because it scales with respect to the * depth * of your file tree . Therefore low values ( even ` 1 ` ) are acceptable . Note that this value does not impact the number of system calls made by an exhausted iterator .
pub fn max_open(mut self, mut n: usize) -> Self {
        if n == 0 {
            n = 1;
        }
        self.opts.max_open = n;
        self
    }
pub fn max_open ( mut self , mut n : usize ) -> Self { if n == 0 { n = 1 ; } self . opts . max_open = n ; self }
Set the maximum number of simultaneously open file descriptors used
by the iterator.
Set the maximum number of simultaneously open file descriptors used by the iterator .
mut self
n
usize
mut self
n
usize