pub fn filter(&self) -> LevelFilter {
        self.directives
            .iter()
            .map(|d| d.level)
            .max()
            .unwrap_or(LevelFilter::Off)
    }
/// Returns the maximum `LevelFilter` that this filter instance is
/// configured to output.
///
/// # Example
///
/// ```rust
/// extern crate log;
/// extern crate env_logger;
///
/// use log::LevelFilter;
/// use env_logger::filter::Builder;
///
/// fn main() {
///     let mut builder = Builder::new();
///     builder.filter(Some("module1"), LevelFilter::Info);
///     builder.filter(Some("module2"), LevelFilter::Error);
///
///     let filter = builder.build();
///     assert_eq!(filter.filter(), LevelFilter::Info);
/// }
/// ```
Returns the maximum `LevelFilter` that this filter instance is
configured to output.
Returns the maximum ` LevelFilter ` that this filter instance is configured to output .
pub fn filter(&self) -> LevelFilter {
        self.directives
            .iter()
            .map(|d| d.level)
            .max()
            .unwrap_or(LevelFilter::Off)
    }
pub fn filter ( & self ) -> LevelFilter { self . directives . iter ( ) . map ( | d | d . level ) . max ( ) . unwrap_or ( LevelFilter :: Off ) }
Returns the maximum `LevelFilter` that this filter instance is
configured to output.
Returns the maximum ` LevelFilter ` that this filter instance is configured to output .
&self
&self
example
```rust
extern crate log;
extern crate env_logger.

use log::LevelFilter;
use env_logger::filter::Builder.

fn main() {
let mut builder = Builder::new();
builder.filter(Some("module1"), LevelFilter::Info);
builder.filter(Some("module2"), LevelFilter::Error).


` ` ` rust extern crate log ; extern crate env_logger . use log :: LevelFilter ; use env_logger :: filter :: Builder . fn main () { let mut builder = Builder :: new () ; builder . filter ( Some ( " module1 " ) LevelFilter :: Info ) ; builder . filter ( Some ( " module2 " ) LevelFilter :: Error ) .